xfs
[Top] [All Lists]

Re: [PATCH v3] xfs_quota: print quota id number if the name can't be fou

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH v3] xfs_quota: print quota id number if the name can't be found
From: Zorro Lang <zorro.lang@xxxxxxxxx>
Date: Wed, 11 May 2016 09:28:42 +0800
Cc: xfs@xxxxxxxxxxx, Eric Sandeen <sandeen@xxxxxxxxxx>, Zorro Lang <zlang@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=TR0qUWjKfgBAu3tW9dMMeewZMaT1j22aZb7/BJiYXoM=; b=xifH9G/dqGWWddluRvGWVHmqaeSbPMwcwy9TK3GmGu82fIsETTS5RHmAwhL5WYPxtW TpiwP5q87MtSt1Qtd/hPVRxWEn2/R+gVMBgcee7JpVahoW+W7IjKUEP5dRWC/dmpFMwZ EH71JRK10OxzojJiwDWabFwcVIcktcZpjLbfeZQCbmfOf4+sektImo8zM68ts20JNZMO b5Ca+jXdHT5+otz8qBu/iA6mDlHebzKkYn3KZc4cJEATQKzdUYEiSkf7BWcEIQ0vaoua 74ICepPv7XIVdRdBnpq0Dc2dcNionSPqvKB7JW5eT3IQHdokuxNl1JZuCe2cukY1dmm7 SiWQ==
In-reply-to: <20160511000940.GJ26977@dastard>
References: <1460040514-23834-1-git-send-email-zlang@xxxxxxxxxx> <20160511000940.GJ26977@dastard>


2016å5æ11æ 08:10ï"Dave Chinner" <david@xxxxxxxxxxxxx>åéï
>
> On Thu, Apr 07, 2016 at 10:48:34PM +0800, Zorro Lang wrote:
> > When use GETNEXTQUOTA ioctl to report project quota, it always
> > report an unexpected quota:
> >
> >Â Â(null) 0 0 0 00 [--------]
> >
> > The ID 0 store the default quota, even if no one set default quota,
> > it still have quota accounting, but not enforced. So GETNEXTQUOTA
> > can find and report this undefined quota.
> >
> > From this problem, I thought if others' quota name miss, (null) will
> > be printed too. e.g.
> >
> >Â Â# xfs_quota -xc "limit -u bsoft=300m bhard=400m test" $mnt
> >Â Â# xfs_quota -xc "report -u" $mnt
> > ÂUser ID     Used   ÂSoft   ÂHard  Warn/Grace
> >Â Â---------- --------------------------------------------------
> > Âroot        0     0     0  Â00 [--------]
> > Âtest        0  Â307200  Â409600  Â00 [--------]
> >Â Â# userdel -r test
> >Â Â# xfs_quota -xc "report -u" $mnt
> > ÂUser ID     Used   ÂSoft   ÂHard  Warn/Grace
> >Â Â---------- --------------------------------------------------
> > Âroot        0     0     0  Â00 [--------]
> >Â Â(null)Â Â Â Â Â Â Â 0Â Â Â307200Â Â Â409600Â Â Â00 [--------]
> >
> > So this problem same with above id 0's problem. For deal with this,
> > this patch will print id number if the name can't be found.
> >
> > But if use old GETQUOTA ioctl, it won't print project id 0 quota
> > information(if it's not defined). That's different with GETNEXTQUOTA.
> > For keep consistent, this patch also print project id 0 when use old
> > GETQUOTA.
> >
> > Signed-off-by: Zorro Lang <zlang@xxxxxxxxxx>
>
> OK, so with this applied xfs/133 and xfs/134 both now fail with
> this extra output:
>
> +#0 0 0 0 00 [--------]
>
> Can you send patches for these tests to filter out these lines so
> that the tests pass again for both old and new xfsprogs?

Hi Dave,

Sure, I'm doing on this. I remember that a patch from Eryu maybe suit for this xfsprogs change(maybe need some modify). I'll check it and send a suitable patch as soon as possible.

Thanks,
Zorro

>
> Cheers,
>
> Dave.
> --
> Dave Chinner
> david@xxxxxxxxxxxxx
>
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

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