summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-12-09 17:35:48 +0100
committerLennart Poettering <lennart@poettering.net>2016-12-20 20:00:09 +0100
commitafe682bc7f1d9a089cb5dfb439929f3791c18d22 (patch)
tree2200403642b3e20e8eea57b2589045f3fb3a4ada
parentf582cbca0029d3867620dfa7df86534d2a241275 (diff)
downloadsystemd-afe682bc7f1d9a089cb5dfb439929f3791c18d22.tar.gz
util-lib: make verbose_mount() grok MS_MOVE
Let's print a proper message if we see MS_MOVE.
-rw-r--r--src/basic/mount-util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/mount-util.c b/src/basic/mount-util.c
index 840e94a553..f0bc9cac18 100644
--- a/src/basic/mount-util.c
+++ b/src/basic/mount-util.c
@@ -673,6 +673,9 @@ int mount_verbose(
else if ((flags & MS_BIND) && !type)
log_debug("Bind-mounting %s on %s (%s \"%s\")...",
what, where, strnull(fl), strempty(options));
+ else if (flags & MS_MOVE)
+ log_debug("Moving mount %s → %s (%s \"%s\")...",
+ what, where, strnull(fl), strempty(options));
else
log_debug("Mounting %s on %s (%s \"%s\")...",
strna(type), where, strnull(fl), strempty(options));