xfs: add missing break in xfs_parseargs()
PATCH 1/1 xfs: add missing break in xfs_parseargs()
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
--- fs/xfs/xfs_super.c | 1 + 1 file changed, 1 insertion(+)
fs/xfs/xfs_super.c +1 -0
@@ -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 |
Signature · 6 lines
2.5.5 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
Quoted 5 lines · Eryu Guan
Commit
2e74af0e1189("xfs: convert mount option parsing to tokens") missed a 'break;' inxfs_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
Quoted 22 lines
Fixes 2e74af0e1189 ("xfs: convert mount option parsing to tokens")Signed-off-by Eryu Guan <[email protected]>--- fs/xfs/xfs_super.c | 1 + 1 file changed, 1 insertion(+)fs/xfs/xfs_super.c +1
-0@@ -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 |Signature · 1 line
2.5.5
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 9 lines · Eryu Guan
Commit
2e74af0e1189("xfs: convert mount option parsing to tokens") missed a 'break;' inxfs_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
Fixes 2e74af0e1189 ("xfs: convert mount option parsing to tokens")Signed-off-by Eryu Guan <[email protected]>---
Quoted 22 lines
fs/xfs/xfs_super.c | 1 + 1 file changed, 1 insertion(+)fs/xfs/xfs_super.c +1
-0@@ -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 |Signature · 6 lines
2.5.5 _______________________________________________ xfs mailing list [email protected] http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 8 lines · Eryu Guan
Commit
2e74af0e1189("xfs: convert mount option parsing to tokens") missed a 'break;' inxfs_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
Fixes 2e74af0e1189 ("xfs: convert mount option parsing to tokens")Signed-off-by Eryu Guan <[email protected]>
Ugh, how did I miss that; I thought I scripted that whole change.
Thanks for catching it!
Quoted 10 lines
--- fs/xfs/xfs_super.c | 1 + 1 file changed, 1 insertion(+)fs/xfs/xfs_super.c +0
-0
fs/xfs/xfs_super.c xfs_parseargs( · line 356
Quoted 7 lines
fs/xfs/xfs_super.c +1
-0@@ -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 |
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs