]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: don't canonicalize target
authorKarel Zak <kzak@redhat.com>
Thu, 17 May 2012 10:10:43 +0000 (12:10 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 17 May 2012 10:10:43 +0000 (12:10 +0200)
commitfa705b5441bdb93c36702f7db6c54ec1133bd1cc
tree6c45c116641a7578132ee275c6f0091312ea6159
parent3b56eea7c99589bd6b80576de9ce185fee5cd7d2
libmount: don't canonicalize target

Note that mountpoint (target_ paths in /proc/mounts and /proc/self/mountinfo
are always canonicalized by kernel.

 * for umount we don't have to canonicalize target
   by default if the mountpoint is found in /proc/self/mountinfo

 * in mnt_table_find_target() is unnecessary to canonicalize target paths
   if the table of the filesystems is read from /proc/self/mountinfo

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=820707
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_umount.c
libmount/src/fs.c
libmount/src/tab.c