From: Ilya Dryomov Date: Fri, 23 Jan 2026 13:48:53 +0000 (+0100) Subject: qa: don't assume that /dev/sda or /dev/vda is present in unmap.t X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2b5f0f4e7396114f9944a4987c38e18d4ecfbb1f;p=ceph.git 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 --- diff --git a/src/test/cli-integration/rbd/unmap.t b/src/test/cli-integration/rbd/unmap.t index 3fdac43d7c0..9da5d2c1e79 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]