2
* Copyright (c) 1995, 2001-2002 Silicon Graphics, Inc. All Rights Reserved.
2
* Copyright (c) 1995, 2001-2002, 2005 Silicon Graphics, Inc.
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms of version 2.1 of the GNU Lesser General Public License
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public License
6
7
* as published by the Free Software Foundation.
8
* This program is distributed in the hope that it would be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
* Further, this software is distributed without any warranty that it is
13
* free of the rightful claim of any third person regarding infringement
14
* or the like. Any license provided herein, whether implied or
15
* otherwise, applies only to this software file. Patent licenses, if
16
* any, provided herein do not apply to combinations of this program with
17
* other software, or any other product whatsoever.
19
* You should have received a copy of the GNU Lesser General Public
20
* License along with this program; if not, write the Free Software
21
* Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307,
24
* Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
25
* Mountain View, CA 94043, or:
29
* For further information regarding this notice, see:
31
* http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
9
* This program is distributed in the hope that it would be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this program; if not, write the Free Software Foundation,
16
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
34
#include <xfs/libxfs.h>
36
/* attributes.h (purposefully) unavailable to xfsprogs, make do */
37
struct attrlist_cursor { __u32 opaque[4]; };
39
20
#include <xfs/handle.h>
40
21
#include <xfs/jdm.h>
22
#include <xfs/parent.h>
42
24
/* internal fshandle - typecast to a void for external use */
43
25
#define FSHANDLE_SZ 8
190
172
bufp, bufsz, flags, cursor);
177
jdm_getparents( jdm_fshandle_t *fshp,
179
parent_t *bufp, size_t bufsz,
180
parent_cursor_t *cursor,
181
unsigned int *count, unsigned int *more)
183
#if !defined(__sgi__)
187
register fshandle_t *fshandlep = ( fshandle_t * )fshp;
188
filehandle_t filehandle;
190
jdm_fill_filehandle( &filehandle, fshandlep, statp );
191
return getparents_by_handle (( void * )&filehandle,
192
sizeof( filehandle ),
193
bufp, bufsz, cursor, count, more);
198
jdm_getparentpaths( jdm_fshandle_t *fshp,
200
parent_t *bufp, size_t bufsz,
201
parent_cursor_t *cursor,
202
unsigned int *count, unsigned int *more)
204
#if !defined(__sgi__)
208
register fshandle_t *fshandlep = ( fshandle_t * )fshp;
209
filehandle_t filehandle;
211
jdm_fill_filehandle( &filehandle, fshandlep, statp );
212
return getparentpaths_by_handle (( void * )&filehandle,
213
sizeof( filehandle ),
214
bufp, bufsz, cursor, count, more);