Skip to contentSkip to conversation

libhandle: add fd_to_handle to handle.h

PATCH In review Sage Weil 2 participants 2 messages Apr 6, 2015

lore
Share & tools
lore

Sage Weil

author
#0 lore raw

PATCH 1/1 libhandle: add fd_to_handle to handle.h

It's on the man page but strangely missing from the header.

---
 include/handle.h |    1 +
 1 file changed, 1 insertion(+)
include/handle.h +1 -0
index b211a2f..ee69a11 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Sage Weil

It's on the man page but strangely missing from the header.

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. ;)

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs