chiark / gitweb /
util-lib: make verbose_mount() grok MS_MOVE
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Dec 2016 16:35:48 +0000 (17:35 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
Let's print a proper message if we see MS_MOVE.

src/basic/mount-util.c

index f99a543ec54b698e158c94dd060902c535706c18..402e55bcff500dea177a1062df357dec6528fe20 100644 (file)
@@ -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));