From 2b5f0f4e7396114f9944a4987c38e18d4ecfbb1f Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Fri, 23 Jan 2026 14:48:53 +0100 Subject: [PATCH] qa: don't assume that /dev/sda or /dev/vda is present in unmap.t Instead of hard-coding the block device name, use the block device that is backing the filesystem that the test is running on. We can be quite sure it won't be an RBD device ;) Fixes: https://tracker.ceph.com/issues/74529 Signed-off-by: Ilya Dryomov --- src/test/cli-integration/rbd/unmap.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/cli-integration/rbd/unmap.t b/src/test/cli-integration/rbd/unmap.t index 3fdac43d7c03..9da5d2c1e79e 100644 --- a/src/test/cli-integration/rbd/unmap.t +++ b/src/test/cli-integration/rbd/unmap.t @@ -70,8 +70,9 @@ Not a block device - device that's just been unmapped: A block device, but not rbd: - $ sudo rbd device unmap /dev/[sv]da - rbd: '/dev/?da' is not an rbd device (glob) + $ THIS_FS_DEV=$(findmnt -n -o SOURCE -T .) + $ sudo rbd device unmap $THIS_FS_DEV + rbd: '/dev/.+' is not an rbd device (re) rbd: unmap failed: (22) Invalid argument [22] -- 2.47.3