ext4: skip project quota tests if the kernel does not support them
PATCH 1/1 ext4: skip project quota tests if the kernel does not support them
In _scratch_enable_pquota, use _notrun if the file system with project quotas enable can't be mounted, since that indicates the kernel doesn't support that feature.
Signed-off-by Theodore Ts'o <[email protected]>
--- common/quota | 3 +++ 1 file changed, 3 insertions(+)
common/quota +3 -0
@@ -119,6 +119,9 @@ _scratch_enable_pquota() [ "$FSTYP" != "ext4" ] && return tune2fs -O quota,project $SCRATCH_DEV >>$seqres.full 2>&1 + _scratch_mount >/dev/null 2>&1 \ + || _notrun "kernel doesn't support project feature on $FSTYP" + _scratch_unmount } #
Signature · 1 line
2.11.0.rc0.7.gbe5a750
Quoted 5 lines · Theodore Ts'o
In
_scratch_enable_pquota, use_notrunif the file system with project quotas enable can't be mounted, since that indicates the kernel doesn't support that feature.Signed-off-by Theodore Ts'o <[email protected]>
Looks fine.
Acked-by Dave Chinner <[email protected]>
-Dave
Signature · 2 lines
Dave Chinner [email protected]