@@ -94,9 +94,8 @@ cp --reflink $SCRATCH_MNT/subv1/file1 $SCRATCH_MNT/subv3/file1
# in commit tree. So need to sync to update the qgroup commit tree.
sync
-units=`_btrfs_qgroup_units`
-$BTRFS_UTIL_PROG qgroup show $units $SCRATCH_MNT | $SED_PROG -n '/[0-9]/p' | \
- $AWK_PROG '{print $2" "$3}'
+_scratch_unmount
+_btrfs_check_scratch_qgroup
# success, all done
status=0
@@ -1,7 +1,3 @@
QA output created by 091
wrote 262144/262144 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-65536 65536
-327680 65536
-327680 65536
-327680 65536
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> --- tests/btrfs/091 | 5 ++--- tests/btrfs/091.out | 4 ---- 2 files changed, 2 insertions(+), 7 deletions(-)