If the NFS_ATTR_FATTR_V4 flag is set, use the NFSv3 convention for
the 'space_used' part of the fattr.
--- old/fs/nfs/inode.c Sun Aug 11 20:39:02 2002
+++ new/fs/nfs/inode.c Sun Aug 11 20:39:39 2002
@@ -727,7 +727,7 @@ __nfs_fhget(struct super_block *sb, stru
inode->i_nlink = fattr->nlink;
inode->i_uid = fattr->uid;
inode->i_gid = fattr->gid;
- if (fattr->valid & NFS_ATTR_FATTR_V3) {
+ if (fattr->valid & (NFS_ATTR_FATTR_V3 | NFS_ATTR_FATTR_V4)) {
/*
* report the blocks in 512byte units
*/
@@ -1138,7 +1138,7 @@ __nfs_refresh_inode(struct inode *inode,
inode->i_uid = fattr->uid;
inode->i_gid = fattr->gid;
- if (fattr->valid & NFS_ATTR_FATTR_V3) {
+ if (fattr->valid & (NFS_ATTR_FATTR_V3 | NFS_ATTR_FATTR_V4)) {
/*
* report the blocks in 512byte units
*/
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs