]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix mnt_table_is_fs_mounted() loopdev use
authorKarel Zak <kzak@redhat.com>
Tue, 16 Feb 2016 14:44:31 +0000 (15:44 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Feb 2016 14:44:31 +0000 (15:44 +0100)
commitdc7c3d658782f6c2a409c6e76e32db3afc86c4ed
tree024b8afcd2993b3db0f7b1b07d2b535d7b91b99b
parent7bbde59c8caa64ce572c935169e60d1b5c6b782b
libmount: fix mnt_table_is_fs_mounted() loopdev use

The function does not detect already mounted loop devices on systems
with regular /etc/mtab file.

The patch also improves test_is_mounted() to be useful with mtab.

Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab.c
libmount/src/tab_parse.c
libmount/src/utils.c