diff options
Diffstat (limited to 'nuttx/fs/nfs/nfs_proto.h')
-rw-r--r-- | nuttx/fs/nfs/nfs_proto.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nuttx/fs/nfs/nfs_proto.h b/nuttx/fs/nfs/nfs_proto.h index cab8fdd57..8b6e8cf94 100644 --- a/nuttx/fs/nfs/nfs_proto.h +++ b/nuttx/fs/nfs/nfs_proto.h @@ -249,6 +249,10 @@ # define NFS_MAXFHSIZE 64 #endif +/* File identifier */ + +#define MAXFIDSZ 16 + /**************************************************************************** * Public Types ****************************************************************************/ @@ -267,6 +271,32 @@ typedef enum NFFIFO = 7 } nfstype; +typedef struct +{ + int32_t val[2]; +} fsid_t; /* file system id type */ + +/* File identifier. + * These are unique per filesystem on a single machine. + */ + +struct fid +{ + unsigned short fid_len; /* length of data in bytes */ + unsigned short fid_reserved; /* force longword alignment */ + char fid_data[MAXFIDSZ]; /* data (variable length) */ +}; + +/* Generic file handle */ + +struct fhandle +{ + fsid_t fh_fsid; /* File system id of mount point */ + struct fid fh_fid; /* File sys specific id */ +}; + +typedef struct fhandle fhandle_t; + /* File Handle (32 bytes for version 2), variable up to 64 for version 3. */ union nfsfh |