]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/handle.h
Merge back recent changes from xfs kernel headers.
[thirdparty/xfsprogs-dev.git] / include / handle.h
CommitLineData
2bd0ea18 1/*
f302e9e4
NS
2 * Copyright (c) 1995, 2001-2003, 2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
a32ec6a8 4 *
f302e9e4
NS
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
a32ec6a8
DR
7 * as published by the Free Software Foundation.
8 *
f302e9e4
NS
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.
a32ec6a8 13 *
f302e9e4
NS
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
2bd0ea18
NS
17 */
18#ifndef __HANDLE_H__
19#define __HANDLE_H__
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
14290264
NS
25struct fsdmidata;
26struct attrlist_cursor;
27
2bd0ea18 28extern int path_to_handle (char *__path, void **__hanp, size_t *__hlen);
a3cbe7cd 29extern int path_to_fshandle (char *__path, void **__fshanp, size_t *__fshlen);
2bd0ea18
NS
30extern int handle_to_fshandle (void *__hanp, size_t __hlen, void **__fshanp,
31 size_t *__fshlen);
32extern void free_handle (void *__hanp, size_t __hlen);
a3cbe7cd 33extern int open_by_fshandle (void *__fshanp, size_t __fshlen, int __rw);
2bd0ea18
NS
34extern int open_by_handle (void *__hanp, size_t __hlen, int __rw);
35extern int readlink_by_handle (void *__hanp, size_t __hlen, void *__buf,
36 size_t __bs);
14290264
NS
37extern int attr_multi_by_handle (void *__hanp, size_t __hlen, void *__buf,
38 int __rtrvcnt, int __flags);
39extern int attr_list_by_handle (void *__hanp, size_t __hlen, void *__buf,
40 size_t __bufsize, int __flags,
41 struct attrlist_cursor *__cursor);
e1864286
DR
42extern int fssetdm_by_handle (void *__hanp, size_t __hlen,
43 struct fsdmidata *__fsdmi);
2bd0ea18
NS
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* __HANDLE_H__ */