With the pending patches to remove support for disabling quota
accounting on a mounted file system we need to unmount the
file system first before removing the quota files.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
_qmount
echo "*** turn off $off_opts quotas"
xfs_quota -x -c "off -$off_opts" $SCRATCH_MNT
+ _scratch_unmount
+ _qmount_option ""
+ _scratch_mount
xfs_quota -x -c "remove -$off_opts" $SCRATCH_MNT
echo "*** umount"
_scratch_unmount