From: Karel Zak Date: Tue, 15 Jan 2013 15:09:07 +0000 (+0100) Subject: mount: make --verbose more verbose about propagation X-Git-Tag: v2.23-rc1~346 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b4ec4573dfa41b81668e141921cf00e6123234bc;p=thirdparty%2Futil-linux.git mount: make --verbose more verbose about propagation Signed-off-by: Karel Zak --- diff --git a/sys-utils/mount.c b/sys-utils/mount.c index a6c15832d7..e98a688adc 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -248,9 +248,12 @@ static void success_message(struct libmnt_context *cxt) printf(_("%s: %s moved to %s.\n"), pr, src, tgt); else if (mflags & MS_BIND) printf(_("%s: %s binded on %s.\n"), pr, src, tgt); - else if (mflags & MS_PROPAGATION) + else if (mflags & MS_PROPAGATION) { + if (src && strcmp(src, "none") != 0 && tgt) + printf(_("%s: %s mounted on %s.\n"), pr, src, tgt); + printf(_("%s: %s propagation flags changed.\n"), pr, tgt); - else + } else printf(_("%s: %s mounted on %s.\n"), pr, src, tgt); }