summaryrefslogtreecommitdiffstats
path: root/libmount/src/cache.c
diff options
context:
space:
mode:
authorKarel Zak2014-07-01 10:34:09 +0200
committerKarel Zak2014-07-01 10:34:09 +0200
commit8642cd7b0f06157c1e4e8aae616bee78fa6a250f (patch)
treeccbd95a26e288f5fd4d6ddcedb337a27847b79ac /libmount/src/cache.c
parentfindmnt: use mnt_cache_set_targets() for non-kernel table (diff)
downloadkernel-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.c1
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) {