#
_require_quota()
{
+ src/feature -q $TEST_DEV
+ [ $? -ne 0 ] && _notrun "Installed kernel does not support XFS quota"
+
[ ! -x /usr/sbin/repquota ] && _notrun "Quota user tools not installed"
/usr/sbin/repquota -m -s -a >/dev/null 2>&1
[ $? -ne 0 ] && _notrun "Installed quota tools do not support XFS"
-
- [ ! -f /proc/fs/xfs/xqm ] && _notrun "Kernel does not support XFS quota"
}
# create a file as a specific user (uid)
perl -ne 's/^(\w+)\s+([-|+])/[NAME] \2/g; print'
}
+_qmount()
+{
+ umount $SCRATCH_DEV >/dev/null 2>&1
+ mount -t xfs $SCRATCH_DEV $SCRATCH_MNT || _fail "qmount failed"
+ chmod ugo+rwx $SCRATCH_MNT
+ misc/quot $SCRATCH_DEV >>$seq.full 2>&1
+}
# make sure this script returns success
/bin/true