diff options
author | Eric Sandeen <[email protected]> | 2020-05-21 13:06:59 -0700 |
---|---|---|
committer | Darrick J. Wong <[email protected]> | 2020-05-27 08:49:25 -0700 |
commit | c8d329f311c4d3d8f8e6dc5897ec235e37f48ae8 (patch) | |
tree | 102a781fc931d1b5248fbcf426a99bf3ddb25dea /lib/of-reconfig-notifier-error-inject.c | |
parent | b41b46c20c0bd32cd0a3795fcd2b892213cb6f5e (diff) |
xfs: group quota should return EDQUOT when prj quota enabled
Long ago, group & project quota were mutually exclusive, and so
when we turned on XFS_QMOPT_ENOSPC ("return ENOSPC if project quota
is exceeded") when project quota was enabled, we only needed to
disable it again for user quota.
When group & project quota got separated, this got missed, and as a
result if project quota is enabled and group quota is exceeded, the
error code returned is incorrectly returned as ENOSPC not EDQUOT.
Fix this by stripping XFS_QMOPT_ENOSPC out of flags for group
quota when we try to reserve the space.
Signed-off-by: Eric Sandeen <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Brian Foster <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'lib/of-reconfig-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions