diff options
author | Karel Zak | 2014-07-01 10:34:09 +0200 |
---|---|---|
committer | Karel Zak | 2014-07-01 10:34:09 +0200 |
commit | 8642cd7b0f06157c1e4e8aae616bee78fa6a250f (patch) | |
tree | ccbd95a26e288f5fd4d6ddcedb337a27847b79ac /libmount/src/cache.c | |
parent | findmnt: use mnt_cache_set_targets() for non-kernel table (diff) | |
download | kernel-qcow2-util-linux-8642cd7b0f06157c1e4e8aae616bee78fa6a250f.tar.gz kernel-qcow2-util-linux-8642cd7b0f06157c1e4e8aae616bee78fa6a250f.tar.xz kernel-qcow2-util-linux-8642cd7b0f06157c1e4e8aae616bee78fa6a250f.zip |
libmount: always use mnt_resolve_target() in mnt_fs_match_target()
The requested path is also target mountpoint, so let's optimize
realpath() usage as well.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/cache.c')
-rw-r--r-- | libmount/src/cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmount/src/cache.c b/libmount/src/cache.c index 05b078b44..8b2e6560f 100644 --- a/libmount/src/cache.c +++ b/libmount/src/cache.c @@ -504,6 +504,7 @@ static char *canonicalize_path_and_cache(const char *path, char *key = NULL; char *value = NULL; + DBG(CACHE, ul_debugobj(cache, "canonicalize path %s", path)); p = canonicalize_path(path); if (p && cache) { |