Skip to contentSkip to conversation

xfs: add missing break in xfs_parseargs()

PATCH In review Eryu Guan 3 participants 4 messages Mar 31, 2016 XFS filesystem

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

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

Fixes 2e74af0e1189 ("xfs: convert mount option parsing to tokens")
---
 fs/xfs/xfs_super.c | 1 +
 1 file changed, 1 insertion(+)
fs/xfs/xfs_super.c +1 -0
index d760934..361564e 100644
@@ -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
author
#1 lore raw
Quoted 5 lines · Eryu Guan

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

Quoted 22 lines
Fixes 2e74af0e1189 ("xfs: convert mount option parsing to tokens")
---
 fs/xfs/xfs_super.c | 1 +
 1 file changed, 1 insertion(+)
fs/xfs/xfs_super.c +1 -0
index d760934..361564e 100644
@@ -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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Eryu Guan
Quoted 9 lines · Eryu Guan

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

Fixes 2e74af0e1189 ("xfs: convert mount option parsing to tokens")

---

Quoted 22 lines
 fs/xfs/xfs_super.c | 1 +
 1 file changed, 1 insertion(+)
fs/xfs/xfs_super.c +1 -0
index d760934..361564e 100644
@@ -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

Reviewed-by on v1 1/1
#3 lore raw
In reply to Eryu Guan
Quoted 8 lines · Eryu Guan

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

Fixes 2e74af0e1189 ("xfs: convert mount option parsing to tokens")

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
index d760934..361564e 100644

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