xfs
[Top] [All Lists]

Re: [PATCH] xfs: add missing break in xfs_parseargs()

To: xfs@xxxxxxxxxxx
Subject: Re: [PATCH] xfs: add missing break in xfs_parseargs()
From: Eryu Guan <guaneryu@xxxxxxxxx>
Date: Thu, 31 Mar 2016 19:14:30 +0800
Cc: esandeen@xxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=35od9YsLMV8OuzlsondqWvTer9Iv0k68e4dZnlVJ7bI=; b=dThYT3PhFH3DDUdMX1j5/L5Eko5Bo+soj5+oVXBJRdPfuErWGLvpDESyO2osZw44Ef Oq4+TqSKVDRmUKx5MtCwBB5q+XybcvPhe/1X0RWMWhd4j1xIQroD9JKky7rXVAYQ+iQO FGO8fRFWicLosn3HFQgrxLz3rofCPRQUyvDpJuexTBVVRNFYh5IJzbgu3vUFd0u8WX2q 4wjSv5qYC4wcxCtIfz2d9sE72d91ATr675CW3/ATZUZm/zrj1xz1L9HldNWEA+4zEV9/ QXLxAUZaOrIDggY02BCoUKRArU7GpVW1UcyVZce9BsXY9cBFYaokZyTOvyYagmVgEqBr gXQg==
In-reply-to: <1459415583-26981-1-git-send-email-guaneryu@xxxxxxxxx>
References: <1459415583-26981-1-git-send-email-guaneryu@xxxxxxxxx>
User-agent: Mutt/1.5.24 (2015-08-30)
On Thu, Mar 31, 2016 at 05:13:03PM +0800, Eryu Guan wrote:
> Commit 2e74af0e1189 ("xfs: convert mount option parsing to tokens")
> missed a 'break;' in xfs_parseargs() which causes mount to fail with
> "-o pqnoenforce" option. xfs/050 catches this failure.
> 
> XFS (vda6): Super block does not support project and group quota together

Forgot to mention that it only fails for v4 xfs, but v5 xfs enables
group quota automatically in this case.

Thanks,
Eryu

> 
> Fixes: 2e74af0e1189 ("xfs: convert mount option parsing to tokens")
> Signed-off-by: Eryu Guan <guaneryu@xxxxxxxxx>
> ---
>  fs/xfs/xfs_super.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
> index d760934..361564e 100644
> --- a/fs/xfs/xfs_super.c
> +++ b/fs/xfs/xfs_super.c
> @@ -350,6 +350,7 @@ xfs_parseargs(
>               case Opt_pqnoenforce:
>                       mp->m_qflags |= (XFS_PQUOTA_ACCT | XFS_PQUOTA_ACTIVE);
>                       mp->m_qflags &= ~XFS_PQUOTA_ENFD;
> +                     break;
>               case Opt_gquota:
>               case Opt_grpquota:
>                       mp->m_qflags |= (XFS_GQUOTA_ACCT | XFS_GQUOTA_ACTIVE |
> -- 
> 2.5.5
> 

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