xfs
[Top] [All Lists]

Re: [help] project quota information incorrect over nfs ...

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: [help] project quota information incorrect over nfs ...
From: "Guk-Bong, Kwon" <gbkwon@xxxxxxxxx>
Date: Fri, 22 Jan 2010 18:54:32 +0900
Cc: Alex Elder <aelder@xxxxxxx>, xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=s7EQKlwzgew7/NUSUzhuASTQkIByai+WicJZEwjc1Bw=; b=APAPAbTLq1+IiKNqxcNhCjDisH1vy4oD1SYcvHsCFeztjspKSGGyeXH7+lzyCMfm3N uoENR/qV3ue5BHt+f09lg6UOqEFLvaZm3qd7sVhkxkvWXHI3Yvw+szNGFd+C2sHCBAqE PRPbyIormY928T6j3hpsS6j/evsgPP6i0jWfc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=RFpvXpzIPwAAyl1PRjk+rtZc6Q/kC1Rd35H88tG961cWYTCwyKtioIHMD/SbtMlBH3 XKP2M9AK1DNBqLQ3/mBOCM2iORMz/yZthgV5PaLXDvVE6riJlW7DR+lteUg2pgysMNy8 QRCMrPjuOt7/Sy2/3MzjMZIilp6AF2lFRyYEk=
In-reply-to: <1AB9A794DBDDF54A8A81BE2296F7BDFE012A69B3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <20100121111720.GA20641@xxxxxxxxxxxxx> <1AB9A794DBDDF54A8A81BE2296F7BDFE012A69B3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
first.. thanks for your interest

your patches is correct..

2010/1/22 Alex Elder <aelder@xxxxxxx>:
> 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@xxxxxx>
>
> Reviewed-by: Alex Elder <aelder@xxxxxxx>
>
>> 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@xxxxxxxxxxx
>> http://oss.sgi.com/mailman/listinfo/xfs
>
>



-- 
감사 합니다.

권국봉.

=================================================
  Senior Researcher Guk-Bong, Kwon
  GLUESYS Co., Ltd., Research Center
  705 Ho, Anyang K-center Building , 1591-9,
  Burim-dong, Dongan-gu, Anyang-si, Gyeonggi-do,
  431-815, Republic of Korea
  Tel : +82-31-388-3260(401)
  Fax : +82-31-388-3261
  Mobile : +82-10-2584-1976
  E-mail : gbkwon@xxxxxxxxxxx, gbkwon@xxxxxxxxx
  Homepage : http://www.gluesys.com/
=================================================

<Prev in Thread] Current Thread [Next in Thread>