diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-28 00:10:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-03-28 00:10:43 +0000 |
commit | c2853cbc580b343ff45c3befc1b484ffc2a2ecfe (patch) | |
tree | c93decb412e433193f06fc5602a9560119017d19 /nuttx/fs/nfs/nfs_proto.h | |
parent | 3f871cbbae8fc67b704f267fadbb932046afd5ca (diff) | |
download | px4-nuttx-c2853cbc580b343ff45c3befc1b484ffc2a2ecfe.tar.gz px4-nuttx-c2853cbc580b343ff45c3befc1b484ffc2a2ecfe.tar.bz2 px4-nuttx-c2853cbc580b343ff45c3befc1b484ffc2a2ecfe.zip |
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4532 42af7a65-404d-4744-a932-0658087f49c3
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 |