4

I have to map several loopback devices via dmsetup.

I could track which loopback device is mapped to a particular /dev/dm-X device file, but is there an easy way to get this info by the /dev/dm-X itself?

dmsetup info was of no help for me here.

1

The constituent devices are under /sys/block/dm-X/slaves. E.g.,

$ ls /sys/block/dm-2/slaves/
loop0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.