From: Theodore Ts'o Date: Sun, 8 Oct 2017 19:27:46 +0000 (-0400) Subject: ext4: skip project quota tests if the kernel does not support them X-Git-Tag: v2022.05.01~1837 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0b6f8ab93c42ea942f452a0a20856d8a3261ad1e;p=users%2Fhch%2Fxfstests-dev.git 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 Acked-by: Dave Chinner Signed-off-by: Eryu Guan --- diff --git a/common/quota b/common/quota index f49728c24..d027a8c11 100644 --- a/common/quota +++ b/common/quota @@ -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 } #