From: Karel Zak Date: Tue, 9 Jun 2009 22:00:09 +0000 (+0200) Subject: mount: use "none" fstype for MS_PROPAGATION mounts X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7da07ff80e357317001a6a0d4bb6732360705e99;p=util-linux mount: use "none" fstype for MS_PROPAGATION mounts Reported-by: Al Viro Signed-off-by: Karel Zak --- diff --git a/mount/mount.c b/mount/mount.c index cc5b88ae..e002ebbb 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -895,7 +895,7 @@ guess_fstype_and_mount(const char *spec, const char *node, const char **types, if (*types && strcasecmp (*types, "auto") == 0) *types = NULL; - if (flags & (MS_BIND | MS_MOVE)) + if (flags & (MS_BIND | MS_MOVE | MS_PROPAGATION)) *types = "none"; if (!*types && !(flags & MS_REMOUNT)) {