[Top] [All Lists]

[PATCH] libhandle: add fd_to_handle to handle.h

To: xfs@xxxxxxxxxxx
Subject: [PATCH] libhandle: add fd_to_handle to handle.h
From: Sage Weil <sage@xxxxxxxxxx>
Date: Mon, 6 Apr 2015 15:43:01 -0700
Cc: Sage Weil <sage@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
It's on the man page but strangely missing from the header.

Signed-off-by: Sage Weil <sage@xxxxxxxxxx>
 include/handle.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/include/handle.h b/include/handle.h
index b211a2f..ee69a11 100644
--- a/include/handle.h
+++ b/include/handle.h
@@ -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);

<Prev in Thread] Current Thread [Next in Thread>