You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/07/19 11:26:51 UTC

[incubator-nuttx] 01/03: fs: nfs: Fix statfs for NFS

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit a3f1abfb458ea2adcebc9f4c0d4722847781f863
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Mon Jul 19 15:58:46 2021 +0900

    fs: nfs: Fix statfs for NFS
    
    Summary:
    - I noticed that the results of the df command are incorrect for NFS.
    - Finally, I found that obj_attributes is not needed to
      communicate with the NFS server on Linux
    - This commit fixes this issue
    
    Impact:
    - None
    
    Testing:
    - Tested with spresense:rndis_smp
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 fs/nfs/nfs_proto.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/nfs/nfs_proto.h b/fs/nfs/nfs_proto.h
index 5b4a1f9..11d30cd 100644
--- a/fs/nfs/nfs_proto.h
+++ b/fs/nfs/nfs_proto.h
@@ -308,7 +308,6 @@ struct nfsv3_sattr
 struct nfs_statfs
 {
   uint32_t           obj_attributes_follow;
-  struct nfs_fattr   obj_attributes;
   nfsuint64          sf_tbytes;
   nfsuint64          sf_fbytes;
   nfsuint64          sf_abytes;