diff options
author | Karel Zak | 2011-01-10 14:29:51 +0100 |
---|---|---|
committer | Karel Zak | 2011-01-10 14:29:51 +0100 |
commit | c59cf20c1be6d78f4e9ef404f5c5f2d44d57df94 (patch) | |
tree | 35bd484b43e2139e62507e732ecc2f3dc0a36103 /shlibs/mount/src/cache.c | |
parent | mount: canonicalize paths in HAVE_LIBMOUNT_MOUNT code (diff) | |
download | kernel-qcow2-util-linux-c59cf20c1be6d78f4e9ef404f5c5f2d44d57df94.tar.gz kernel-qcow2-util-linux-c59cf20c1be6d78f4e9ef404f5c5f2d44d57df94.tar.xz kernel-qcow2-util-linux-c59cf20c1be6d78f4e9ef404f5c5f2d44d57df94.zip |
libmount: properly canonicalize source and target
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/cache.c')
-rw-r--r-- | shlibs/mount/src/cache.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shlibs/mount/src/cache.c b/shlibs/mount/src/cache.c index 3ed69e1b0..9e20a2ae1 100644 --- a/shlibs/mount/src/cache.c +++ b/shlibs/mount/src/cache.c @@ -406,6 +406,8 @@ char *mnt_get_fstype(const char *devname, int *ambi, mnt_cache *cache) char *type = NULL; int rc; + DBG(CACHE, mnt_debug_h(cache, "get %s FS type", devname)); + if (cache) return mnt_cache_find_tag_value(cache, devname, "TYPE"); @@ -444,6 +446,8 @@ char *mnt_resolve_path(const char *path, mnt_cache *cache) assert(path); + DBG(CACHE, mnt_debug_h(cache, "resolving path %s", path)); + if (!path) return NULL; if (cache) @@ -489,6 +493,9 @@ char *mnt_resolve_tag(const char *token, const char *value, mnt_cache *cache) assert(token); assert(value); + DBG(CACHE, mnt_debug_h(cache, "resolving tag token=%s value=%s", + token, value)); + if (!token || !value) return NULL; |