]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: use devno to check if the filesystem is mounted
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:24:31 +0000 (14:24 +0200)
commitd828dfdfb258367c58819411b2f226da6533b92d
tree70dffd7feef089b545c08e6b9f02a30e84278ff8
parentda531dd8d5d3aa284b7f73ce6345e54ce3b3bc1d
lsblk: use devno to check if the filesystem is mounted

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>
libmount/src/tab.c