summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-09 01:37:19 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-09 01:37:19 +0200
commit4b2e41017d621054c0ebb2acb7ceb88fa9617488 (patch)
treef0f6a18ddba0d3fde48b3c5bd0965a511584e70b
parent90b656d7e9bd288681cde6c9482d4c0ca575a431 (diff)
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.
-rw-r--r--utils/umount.c2
1 files changed, 2 insertions, 0 deletions
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);