diff options
author | Dave Reisner | 2012-11-16 05:18:07 +0100 |
---|---|---|
committer | Karel Zak | 2012-11-16 10:41:36 +0100 |
commit | 7b4a2697b17dcb9c1d7b1a51f03fbcc3638a2c7b (patch) | |
tree | e44929ffd54f4dbf11b66cef781982897a502d3e /sys-utils/umount.c | |
parent | libmount: fix support of comma-separated fs types lists (diff) | |
download | kernel-qcow2-util-linux-7b4a2697b17dcb9c1d7b1a51f03fbcc3638a2c7b.tar.gz kernel-qcow2-util-linux-7b4a2697b17dcb9c1d7b1a51f03fbcc3638a2c7b.tar.xz kernel-qcow2-util-linux-7b4a2697b17dcb9c1d7b1a51f03fbcc3638a2c7b.zip |
umount: (recursive) add a cache to the table
Without this table libmount will not resolve paths, meaning that
umounting by relative path will fail.
[kzak@redhat.com: - use mnt_context_get_cache() to make it sensitive
to --no-canonicalize cmdline option]
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/umount.c')
-rw-r--r-- | sys-utils/umount.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/umount.c b/sys-utils/umount.c index b21e39674..06d33de1d 100644 --- a/sys-utils/umount.c +++ b/sys-utils/umount.c @@ -374,6 +374,8 @@ static int umount_recursive(struct libmnt_context *cxt, const char *spec) err(MOUNT_EX_SYSERR, _("libmount table allocation failed")); mnt_table_set_parser_errcb(tb, table_parser_errcb); + mnt_table_set_cache(tb, mnt_context_get_cache(cxt)); + /* * Don't use mtab here. The recursive umount depends on child-parent * relationship defined by mountinfo file. |