From 7b4a2697b17dcb9c1d7b1a51f03fbcc3638a2c7b Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 15 Nov 2012 23:18:07 -0500 Subject: 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 Signed-off-by: Karel Zak --- sys-utils/umount.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys-utils/umount.c') 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. -- cgit v1.2.3-55-g7522