@@ -9,7 +9,7 @@
. ./common/preamble
_begin_fstest auto quick snapshot clone punch logical_resolve
-. ./common/filter
+. ./common/filter.btrfs
. ./common/reflink
_supported_fs btrfs
@@ -148,7 +148,7 @@ echo "resolve second extent with ignore offset option:"
query_logical_ino -o $second_extent_bytenr | filter_snapshot_ids
# Now delete the first snapshot and repeat the last 2 queries.
-$BTRFS_UTIL_PROG subvolume delete -C $SCRATCH_MNT/snap1 | _filter_scratch
+$BTRFS_UTIL_PROG subvolume delete -C $SCRATCH_MNT/snap1 | _filter_btrfs_subvol_delete
# Query the second extent with an offset of 0, should return file offsets 12M
# and 20M for the default subvolume (root 5) and file offsets 4M, 12M and 20M
@@ -79,7 +79,7 @@ inode 257 offset 4194304 snap1
inode 257 offset 20971520 root 5
inode 257 offset 12582912 root 5
inode 257 offset 5242880 root 5
-Delete subvolume (commit): 'SCRATCH_MNT/snap1'
+Delete subvolume 'SCRATCH_MNT/snap1'
resolve second extent:
inode 257 offset 20971520 snap2
inode 257 offset 12582912 snap2
@@ -18,7 +18,7 @@ _cleanup()
test -n "$swap_file" && swapoff $swap_file &> /dev/null
}
-. ./common/filter
+. ./common/filter.btrfs
_supported_fs btrfs
_fixed_by_kernel_commit deccae40e4b3 \
@@ -40,7 +40,7 @@ echo "Activating swap file... (should fail due to snapshots)"
_swapon_file $swap_file 2>&1 | _filter_scratch
echo "Deleting first snapshot..."
-$BTRFS_UTIL_PROG subvolume delete -c $SCRATCH_MNT/snap1 | _filter_scratch
+$BTRFS_UTIL_PROG subvolume delete -c $SCRATCH_MNT/snap1 | _filter_btrfs_subvol_delete
# We deleted the snapshot and committed the transaction used to delete it (-c),
# but all its extents are actually only deleted in the background, by the cleaner
@@ -55,7 +55,7 @@ echo "Activating swap file... (should fail due to snapshot)"
_swapon_file $swap_file 2>&1 | _filter_scratch
echo "Deleting second snapshot..."
-$BTRFS_UTIL_PROG subvolume delete -c $SCRATCH_MNT/snap2 | _filter_scratch
+$BTRFS_UTIL_PROG subvolume delete -c $SCRATCH_MNT/snap2 | _filter_btrfs_subvol_delete
echo "Remounting and waiting for cleaner thread to remove the second snapshot..."
_scratch_remount commit=1
@@ -6,12 +6,12 @@ Create a snapshot of 'SCRATCH_MNT' in 'SCRATCH_MNT/snap2'
Activating swap file... (should fail due to snapshots)
swapon: SCRATCH_MNT/swapfile: swapon failed: Invalid argument
Deleting first snapshot...
-Delete subvolume (commit): 'SCRATCH_MNT/snap1'
+Delete subvolume 'SCRATCH_MNT/snap1'
Remounting and waiting for cleaner thread to remove the first snapshot...
Activating swap file... (should fail due to snapshot)
swapon: SCRATCH_MNT/swapfile: swapon failed: Invalid argument
Deleting second snapshot...
-Delete subvolume (commit): 'SCRATCH_MNT/snap2'
+Delete subvolume 'SCRATCH_MNT/snap2'
Remounting and waiting for cleaner thread to remove the second snapshot...
Activating swap file...
Disabling swap file...