diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-08 00:14:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-08 00:14:54 +0000 |
commit | baf6287aa6309c19058f3987abe77e60ac2119a1 (patch) | |
tree | 16f50c3c621870745aa14a1227b01f92a2234517 /nuttx/fs/nfs/nfs_proto.h | |
parent | 9ff075d9f32863b462dd5da68574bf253a2615f5 (diff) | |
download | px4-nuttx-baf6287aa6309c19058f3987abe77e60ac2119a1.tar.gz px4-nuttx-baf6287aa6309c19058f3987abe77e60ac2119a1.tar.bz2 px4-nuttx-baf6287aa6309c19058f3987abe77e60ac2119a1.zip |
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4814 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs_proto.h')
-rw-r--r-- | nuttx/fs/nfs/nfs_proto.h | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/nuttx/fs/nfs/nfs_proto.h b/nuttx/fs/nfs/nfs_proto.h index c840e9a14..a4124dc8e 100644 --- a/nuttx/fs/nfs/nfs_proto.h +++ b/nuttx/fs/nfs/nfs_proto.h @@ -584,19 +584,13 @@ struct READ3resok const char *data; }; -enum stable_how -{ - UNSTABLE = 0, - DATA_SYNC = 1, - FILE_SYNC = 2 -}; struct WRITE3args { nfstype file; uint64_t offset; uint32_t count; - enum stable_how stable; + uint32_t stable; const char *data; }; @@ -604,8 +598,8 @@ struct WRITE3resok { struct wcc_data file_wcc; uint32_t count; - enum stable_how committed; - unsigned char *verf; + uint32_t committed; + unsigned char verf[NFSX_V3WRITEVERF]; }; struct REMOVE3args @@ -658,7 +652,7 @@ struct READDIR3args { struct file_handle dir; nfsuint64 cookie; - nfsuint64 cookieverf; + unsigned char cookieverf[NFSX_V3COOKIEVERF]; uint32_t count; }; @@ -667,19 +661,20 @@ struct entry3 uint64_t fileid; unsigned char name; nfsuint64 cookie; - struct entry3 *nextentry; +#warning "This causes compilation errors" +//struct entry3 nextentry; }; struct dirlist3 { - struct entry3 *entries; + struct entry3 entries; bool eof; }; struct READDIR3resok { struct nfs_fattr dir_attributes; - nfsuint64 cookieverf; + unsigned char cookieverf[NFSX_V3COOKIEVERF]; struct dirlist3 reply; }; @@ -688,4 +683,4 @@ struct FS3args struct file_handle fsroot; }; -#endif +#endif /* __FS_NFS_NFS_PROTO_H */ |