diff options
author | Karel Zak | 2013-01-15 16:09:07 +0100 |
---|---|---|
committer | Karel Zak | 2013-01-15 16:09:07 +0100 |
commit | b4ec4573dfa41b81668e141921cf00e6123234bc (patch) | |
tree | 68e8735e7115b8d7c9dce23a8fe17d0d527ef28d /sys-utils/mount.c | |
parent | libmount: keep MS_PROPAGATION flags in mnt_context_set_mflags() result (diff) | |
download | kernel-qcow2-util-linux-b4ec4573dfa41b81668e141921cf00e6123234bc.tar.gz kernel-qcow2-util-linux-b4ec4573dfa41b81668e141921cf00e6123234bc.tar.xz kernel-qcow2-util-linux-b4ec4573dfa41b81668e141921cf00e6123234bc.zip |
mount: make --verbose more verbose about propagation
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r-- | sys-utils/mount.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c index a6c15832d..e98a688ad 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); } |