Skip to content

Commit 7d5a352

Browse files
committed
NFSD: Document nfsd_setattr() fill-attributes behavior
Add an explanation to prevent the future removal of the fill- attribute call sites in nfsd_setattr(). Some NFSv3 client implementations don't behave correctly if wcc data is not present in an NFSv3 SETATTR reply. Signed-off-by: Chuck Lever <[email protected]>
1 parent 24d92de commit 7d5a352

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fs/nfsd/vfs.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,13 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp,
591591
dentry, ACL_TYPE_DEFAULT,
592592
attr->na_dpacl);
593593
out_fill_attrs:
594+
/*
595+
* RFC 1813 Section 3.3.2 does not mandate that an NFS server
596+
* returns wcc_data for SETATTR. Some client implementations
597+
* depend on receiving wcc_data, however, to sort out partial
598+
* updates (eg., the client requested that size and mode be
599+
* modified, but the server changed only the file mode).
600+
*/
594601
fh_fill_post_attrs(fhp);
595602
out_unlock:
596603
inode_unlock(inode);

0 commit comments

Comments
 (0)