]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libmount/src/tab.c
libmount: rewrite mnt_table_is_fs_mounted() to be less aggressive
authorKarel Zak <kzak@redhat.com>
Fri, 24 Aug 2012 16:13:06 +0000 (18:13 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Aug 2012 16:29:51 +0000 (18:29 +0200)
commit975e14bd4abaf5635ce0783f3ecddb87449cc05a
treea4add5810c4fd13171144eaad0f61b9ac98a58ff
parent123011de335c45c88eb503ecc1e2d930fda022d1
libmount: rewrite mnt_table_is_fs_mounted() to be less aggressive

The old implementation always canonicalizes target (mountpoint) path.
It's better to postpone this operation until the path is really
necessary (usually it's unnecessary), because readlink() on mountpoint
may trigger automounts.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c
libmount/src/tab.c