From 7c30294e1bd574059da21ae85143b60ded3ed96a Mon Sep 17 00:00:00 2001 From: Mark Fasheh Date: Thu, 25 Jan 2018 13:29:24 -0800 Subject: [PATCH] scoutfs-utils: update format.h with file handle definition Signed-off-by: Mark Fasheh --- utils/src/format.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utils/src/format.h b/utils/src/format.h index fc15a08a..03e49d7c 100644 --- a/utils/src/format.h +++ b/utils/src/format.h @@ -642,4 +642,16 @@ enum { SCOUTFS_NET_STATUS_UNKNOWN, }; +/* + * Scoutfs file handle structure - this can be copied out to userspace + * via open by handle or put on the wire from NFS. + */ +struct scoutfs_fid { + __le64 ino; + __le64 parent_ino; +} __packed; + +#define FILEID_SCOUTFS 0x81 +#define FILEID_SCOUTFS_WITH_PARENT 0x82 + #endif