From 0f8706915a5a8aae4791e09af12f81386ec9cc35 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 31 Aug 2025 09:30:22 +0900 Subject: [PATCH] TEST-64-UDEV-STORAGE: do not use -f/--force option for wipefs When -f/--force is used, wipefs does not call ioctl(BLKRRPART), hence the partitions will remain in sysfs. Let's not use the option. This also makes it use 'udevadm lock' for safety. --- test/units/TEST-64-UDEV-STORAGE.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/units/TEST-64-UDEV-STORAGE.sh b/test/units/TEST-64-UDEV-STORAGE.sh index c29731e623..d04189d3c5 100755 --- a/test/units/TEST-64-UDEV-STORAGE.sh +++ b/test/units/TEST-64-UDEV-STORAGE.sh @@ -836,7 +836,7 @@ EOF btrfs filesystem show helper_check_device_symlinks helper_check_device_units - wipefs -a -f "${devices[0]}" + udevadm lock --timeout=30 --device="${devices[0]}" wipefs -a "${devices[0]}" udevadm wait --settle --timeout=30 --removed /dev/disk/by-partlabel/diskpart{1..4} echo "Multiple devices: using disks, data: raid10, metadata: raid10, mixed mode"