diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-14 18:04:39 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-14 18:04:39 +0000 |
commit | 8f09b6e49a22230c26f0af2f7b20a0bf10ca8e9b (patch) | |
tree | 779a94d644b105a48e3f84882c1cde59da2f1af6 /nuttx/fs/nfs/rpc.h | |
parent | 7a3c59297e918b0501d023d7f5d3663abafc7227 (diff) | |
download | px4-nuttx-8f09b6e49a22230c26f0af2f7b20a0bf10ca8e9b.tar.gz px4-nuttx-8f09b6e49a22230c26f0af2f7b20a0bf10ca8e9b.tar.bz2 px4-nuttx-8f09b6e49a22230c26f0af2f7b20a0bf10ca8e9b.zip |
NFS... add logic to truncate files if needed on open
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4843 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/rpc.h')
-rw-r--r-- | nuttx/fs/nfs/rpc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nuttx/fs/nfs/rpc.h b/nuttx/fs/nfs/rpc.h index 15b340ee4..653802b10 100644 --- a/nuttx/fs/nfs/rpc.h +++ b/nuttx/fs/nfs/rpc.h @@ -360,6 +360,12 @@ struct rpc_call_readdir struct READDIR3args readdir; }; +struct rpc_call_setattr +{ + struct rpc_call_header ch; + struct SETATTR3args setattr; +}; + struct rpc_call_fs { struct rpc_call_header ch; @@ -489,6 +495,13 @@ struct rpc_reply_getattr struct nfs_fattr attr; }; +struct rpc_reply_setattr +{ + struct rpc_reply_header rh; + uint32_t status; + struct SETATTR3resok setattr; +}; + struct rpcclnt { nfsfh_t rc_fh; /* File handle of root dir */ |