From: Karel Zak Date: Tue, 9 Jun 2009 22:00:09 +0000 (+0200) Subject: mount: use "none" fstype for MS_PROPAGATION mounts X-Git-Tag: v2.16-rc1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4966ccb16868fa748009a826340fac9d1b1ce39;p=thirdparty%2Futil-linux.git 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 cc5b88ae53..e002ebbbf3 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)) {