]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: use devno to get mountpoint
authorKarel Zak <kzak@redhat.com>
Mon, 8 Jul 2013 12:21:03 +0000 (14:21 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Jul 2013 12:21:03 +0000 (14:21 +0200)
commitda531dd8d5d3aa284b7f73ce6345e54ce3b3bc1d
tree2f1aad95da577e93d8ed6e0e803fe54e4a10cfbe
parent81499ab24e15532a8252c1e527d3301d9309c31e
lsblk: use devno to get mountpoint

The device (for example LVM logical volume) could be renamed and then
the device name from /proc/self/mountinfo does not match with reality.
So, we also need to check devno. Unfortunately we cannot completely
rely on devno, because for example btrfs uses psudo device numbers.

References: https://bugzilla.redhat.com/show_bug.cgi?id=980463
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.c