]> 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>
Tue, 30 Jul 2013 09:08:51 +0000 (11:08 +0200)
commit6c0adce2413d93ec8c6af7442fdf79e9c376bfb4
tree02054d706153c8d38e8ad449158224ca9904f6ce
parent1ef236f080280927b22cd5e9752fca88a3623c35
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