Project quota check in few tests should check SCRATCH_DEV and not
TEST_DEV. Fix that by making possible to pass device to be checked to
_require_prjquota().
Due to the problem tests didn't run with "Installed kernel does not
support project quotas" error.
Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Signed-off-by: Christoph Hellwig <hch@lst.de>
_supported_os Linux #IRIX
_require_scratch
_require_xfs_quota
-_require_prjquota
# real QA test starts here
_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
export MOUNT_OPTIONS="$MOUNT_OPTIONS -o sync"
fi
-# initial populate
_qmount
+_require_prjquota $SCRATCH_DEV
+
+# initial populate
target=$SCRATCH_MNT/target
$FSSTRESS_PROG -s 0xdeed -m8 -w -p4 -n1000 $FSSTRESS_AVOID -d $target
$FSSTRESS_PROG -s 0xdeed -m8 -z -p4 -n1000 -fsetxattr=500 -fchown=500 -d $target
_supported_os Linux #IRIX
_require_scratch
_require_xfs_quota
-_require_prjquota
# real QA test starts here
_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
fi
_qmount
-src/feature -p $SCRATCH_MNT && _notrun "Cannot run without project quota"
+_require_prjquota $SCRATCH_DEV
echo "### create projects file"
rm -f $tmp.projects
_supported_os Linux #IRIX
_require_scratch
_require_xfs_quota
-_require_prjquota
test_files()
{
xfs_quota -c "quota -hnr -$type $id" $QARGS | filter_scratch
}
+export MOUNT_OPTIONS="-opquota"
+_require_prjquota
+_qmount
+
# real QA test starts here
rm -f $tmp.projects $seq.full
umount $SCRATCH_DEV 2>/dev/null
#
_require_prjquota()
{
- src/feature -p $TEST_DEV
+ [ -n "$1" ] && _dev="$1" || _dev="$TEST_DEV"
+ src/feature -p $_dev
[ $? -ne 0 ] && _notrun "Installed kernel does not support project quotas"
}