[help] project quota information incorrect over nfs ...
Alex Elder
aelder at sgi.com
Thu Jan 21 15:55:26 CST 2010
Christoph Hellwig wrote:
> On Thu, Jan 21, 2010 at 01:12:06PM +0900, Guk-Bong, Kwon wrote:
>> nfs client "nfs_server:/test/111" Size is correct..(100M)
>>
>> but nfs client "nfs_server:/test/111" Avail is incorrect.. (500M)
>>
>> "Avail" is big than "Size" ...
>>
>> this stat is normal??
>
> No, it's not. The patch below should fix it, but I'm not sure how
> easily backportable it is to 2.6.27:
I'm going to take this as a [PATCH] and say it looks good to me.
It will probably not be difficult for someone to port it back
to 2.6.27.
> Signed-off-by: Christoph Hellwig <hch at lst.de>
Reviewed-by: Alex Elder <aelder at sgi.com>
> Index: linux-2.6/fs/xfs/quota/xfs_qm_bhv.c
> ===================================================================
> --- linux-2.6.orig/fs/xfs/quota/xfs_qm_bhv.c 2010-01-21 12:13:51.397003969 +0100
> +++ linux-2.6/fs/xfs/quota/xfs_qm_bhv.c 2010-01-21 12:14:14.290009571 +0100
> @@ -59,7 +59,7 @@ xfs_fill_statvfs_from_dquot(
> be64_to_cpu(dp->d_blk_hardlimit);
> if (limit && statp->f_blocks > limit) {
> statp->f_blocks = limit;
> - statp->f_bfree =
> + statp->f_bfree = statp->f_bavail =
> (statp->f_blocks > be64_to_cpu(dp->d_bcount)) ?
> (statp->f_blocks - be64_to_cpu(dp->d_bcount)) : 0;
> }
>
> _______________________________________________
> xfs mailing list
> xfs at oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
More information about the xfs
mailing list