diff options
author | Karel Zak | 2016-02-16 15:44:31 +0100 |
---|---|---|
committer | Karel Zak | 2016-02-16 15:44:31 +0100 |
commit | dc7c3d658782f6c2a409c6e76e32db3afc86c4ed (patch) | |
tree | 024b8afcd2993b3db0f7b1b07d2b535d7b91b99b /libmount/src/tab_parse.c | |
parent | libmount: add loop to debug output (diff) | |
download | kernel-qcow2-util-linux-dc7c3d658782f6c2a409c6e76e32db3afc86c4ed.tar.gz kernel-qcow2-util-linux-dc7c3d658782f6c2a409c6e76e32db3afc86c4ed.tar.xz kernel-qcow2-util-linux-dc7c3d658782f6c2a409c6e76e32db3afc86c4ed.zip |
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>
Diffstat (limited to 'libmount/src/tab_parse.c')
-rw-r--r-- | libmount/src/tab_parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index 4c473905f..c67479b3b 100644 --- a/libmount/src/tab_parse.c +++ b/libmount/src/tab_parse.c @@ -843,6 +843,7 @@ struct libmnt_table *__mnt_new_table_from_file(const char *filename, int fmt) return NULL; tb = mnt_new_table(); if (tb) { + DBG(TAB, ul_debugobj(tb, "new tab for file: %s", filename)); tb->fmt = fmt; if (mnt_table_parse_file(tb, filename) != 0) { mnt_unref_table(tb); |