Alasdair G Kergon wrote:
Indeed - but what needs this that doesn't also need to scanSpeaking about the efficiency, 'dmsetup ls --tree' works well. However, I haven't yet found a efficient way to implement 'dmsetup info --tree -o inverted dm-0', for example.everything? mount?
mount, fsck and other blkid based tools could be optimized with it. However, what I had in mind was system administration like just using dmsetup or looking /sys to check where a device belongs. -- Jun'ichi Nomura, NEC Solutions (America), Inc.