summaryrefslogtreecommitdiff
path: root/src/basic/mount-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-12-09 17:35:48 +0100
committerSven Eden <yamakuzure@gmx.net>2017-07-17 17:58:35 +0200
commitab1b94e886a4c62820eb88468bd377b4a1024c40 (patch)
treee2a2c9a20fdc9f0dc13c81b03c9aa0add9fae90f /src/basic/mount-util.c
parent701d4cf38514d96ea0618807ac3b08a9e52c60cd (diff)
util-lib: make verbose_mount() grok MS_MOVE
Let's print a proper message if we see MS_MOVE.
Diffstat (limited to 'src/basic/mount-util.c')
-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 f99a543ec..402e55bcf 100644
--- a/src/basic/mount-util.c
+++ b/src/basic/mount-util.c
@@ -674,6 +674,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));