# btrfs: harden identification of the stale device
#
. ./common/preamble
-_begin_fstest auto quick
+_begin_fstest auto quick volume
# Override the default cleanup function.
node=$seq-test
}
# Use a known it is much easier to debug.
-uuid="--uuid 12345678-1234-1234-1234-123456789abc"
lvdev=/dev/mapper/$node
seq_mnt=$TEST_DIR/$seq.mnt
setup_dmdev
dmdev=$(realpath $lvdev)
- _mkfs_dev $uuid $dmdev
+ _mkfs_dev $dmdev
# Check if we can un-scan using the mapper device path.
$BTRFS_UTIL_PROG device scan --forget $lvdev
_mkfs_dev $scratch_dev3
_mount $scratch_dev3 $seq_mnt
- _mkfs_dev $uuid -draid1 -mraid1 $lvdev $scratch_dev2
+ _mkfs_dev -draid1 -mraid1 $lvdev $scratch_dev2
- # Add device should free the device under $uuid in the kernel.
+ # Added device should free the stale device in the kernel.
$BTRFS_UTIL_PROG device add -f $dmdev $seq_mnt > /dev/null 2>&1
_mount -o degraded $scratch_dev2 $SCRATCH_MNT