| To: | "Guk-Bong, Kwon" <gbkwon@xxxxxxxxx> |
|---|---|
| Subject: | Re: [help] project quota information incorrect over nfs ... |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Thu, 21 Jan 2010 06:17:20 -0500 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <77cc6e171001202012y9472a42m849bcea8910ca290@xxxxxxxxxxxxxx> |
| References: | <77cc6e171001202012y9472a42m849bcea8910ca290@xxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.19 (2009-01-05) |
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:
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
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;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] xfsdump: Automatic build dependency calculations, Dave Chinner |
|---|---|
| Next by Date: | Re: [PATCH 1/2] xfstests: rebuild aclocal.m4, Christoph Hellwig |
| Previous by Thread: | [help] project quota information incorrect over nfs ..., Guk-Bong, Kwon |
| Next by Thread: | RE: [help] project quota information incorrect over nfs ..., Alex Elder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |