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=c4966ccb16868fa748009a826340fac9d1b1ce39;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)) {