libhandle: add fd_to_handle to handle.h
PATCH 1/1 libhandle: add fd_to_handle to handle.h
It's on the man page but strangely missing from the header.
Signed-off-by Sage Weil <[email protected]>
--- include/handle.h | 1 + 1 file changed, 1 insertion(+)
include/handle.h +1 -0
@@ -28,6 +28,7 @@ struct parent;extern int path_to_handle (char *__path,void **__hanp,size_t *__hlen);extern int path_to_fshandle (char *__path,void **__fshanp,size_t *__fshlen); +extern int fd_to_handle (int fd,void **hanp,size_t *hlen);extern int handle_to_fshandle (void *__hanp,size_t __hlen,void **__fshanp,size_t *__fshlen);extern void free_handle (void *__hanp,size_t __hlen);
Signature · 6 lines
1.7.9.5 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 3 lines · Sage Weil
It's on the man page but strangely missing from the header.
Signed-off-by Sage Weil <[email protected]>
It was missed when the function was merged from the Irix userspace xfs-cmds code base back in 2005. Nobody has noticed since then, so clearly it is a well used function. ;)
Reviewed-by Dave Chinner <[email protected]>
Signature · 7 lines
Dave Chinner [email protected] _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs