By mounting the filesystem with quotas enabled in 087 we exercise the
replay of the quota log items in this tests, which we otherwise don't
test in xfstests. OSS bugzilla #855 is an example of something caught
by this.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
. ./common.rc
. ./common.filter
. ./common.log
+. ./common.quota
_do_meta()
{
rm -f $seq.full $tmp.*
_require_scratch
_require_v2log
+_require_xfs_quota
echo "*** init FS"
umount $SCRATCH_DEV >/dev/null 2>&1
# mount the FS
_echofull "mount"
- if ! _scratch_mount >>$seq.full 2>&1; then
+ if ! _scratch_mount -o uquota >>$seq.full 2>&1; then
_echofull "mount failed: $MOUNT_OPTIONS"
continue
fi
_scratch_xfs_logprint -n >>$seq.full 2>&1
_echofull "mount with replay"
- _scratch_mount >>$seq.full 2>&1 \
+ _scratch_mount -o uquota >>$seq.full 2>&1 \
|| _fail "mount failed: $MOUNT_OPTIONS"
# check on what FS looks like after log recovery
084 ioctl rw auto
085 log auto quick
086 log v2log auto
-087 log v2log auto
+087 log v2log auto quota
088 perms auto quick
089 metadata auto
090 rw auto