From 4b2e41017d621054c0ebb2acb7ceb88fa9617488 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 9 Sep 2015 01:37:19 +0200 Subject: umount: Do not report errors on making the device go away This fixes umounting bind mounts or other mounts for which the device can not be made away. * utils/umount.c (do_umount): When the --force option is not passed, ignore errors from file_set_translator call on the device file. --- utils/umount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/umount.c b/utils/umount.c index 4005029f..19f79fce 100644 --- a/utils/umount.c +++ b/utils/umount.c @@ -235,6 +235,8 @@ do_umount (struct fs *fs) NULL, 0, MACH_PORT_NULL, MACH_MSG_TYPE_COPY_SEND); + if (!(goaway_flags & FSYS_GOAWAY_FORCE)) + err = 0; if (err) error (0, err, "%s", fs->mntent.mnt_fsname); -- cgit v1.2.3