#! /bin/sh
-# XFS QA Test No. 052
+# FS QA Test No. 052
#
# Ensure that quota(1) displays blocksizes matching ondisk dquots.
#
tmp=/tmp/$$
status=1 # failure is the default!
+export MOUNT_OPTIONS=-ousrquota
+
# get standard environment, filters and checks
. ./common.rc
. ./common.filter
_cleanup()
{
+ cd /
umount $SCRATCH_MNT 2>/dev/null
rm -f $tmp.*
}
trap "_cleanup; exit \$status" 0 1 2 3 15
+
+# real QA test starts here
+_supported_fs xfs
+_supported_os IRIX Linux
+
rm -f $seq.full
_require_scratch
MOUNT_OPTIONS="-o usrquota"; export MOUNT_OPTIONS
fi
-# real QA test starts here
_scratch_mkfs_xfs | _filter_mkfs 2>$tmp.mkfs
cat $tmp.mkfs >>$seq.full
chmod a+w $seq.full # arbitrary users will write here
diff $tmp.quota $tmp.xfs_db
[ $? -eq 0 ] && echo OK.
+export -n MOUNT_OPTIONS
+
# success, all done
status=0
exit