From 0b56c459568405213085d8f7ec1f76b7a85d7907 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 14 May 2013 10:32:56 +0200 Subject: libmount: don't ignore root fs on umount -a The release v2.22 (the new umount) introduces a regression when root fs is excluded from umount --all. There is not reason for this exception. The libmount should be smart enough to disable mtab update after rootfs umount. Reported-by: Bruce Dubbs Signed-off-by: Karel Zak --- libmount/src/context_umount.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'libmount/src/context_umount.c') diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index b9484594b..4a8659c9c 100644 --- a/libmount/src/context_umount.c +++ b/libmount/src/context_umount.c @@ -909,11 +909,8 @@ int mnt_context_next_umount(struct libmnt_context *cxt, DBG(CXT, mnt_debug_h(cxt, "next-umount: trying %s", tgt)); - /* ignore root filesystem */ - if ((tgt && (strcmp(tgt, "/") == 0 || strcmp(tgt, "root") == 0)) || - /* ignore filesystems not match with options patterns */ - (cxt->fstype_pattern && !mnt_fs_match_fstype(*fs, + if ((cxt->fstype_pattern && !mnt_fs_match_fstype(*fs, cxt->fstype_pattern)) || /* ignore filesystems not match with type patterns */ -- cgit v1.2.3-55-g7522