util-lib: make verbose_mount() grok MS_MOVE
authorLennart Poettering <lennart@poettering.net>
Fri, 9 Dec 2016 16:35:48 +0000 (17:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Dec 2016 19:00:09 +0000 (20:00 +0100)
Let's print a proper message if we see MS_MOVE.

src/basic/mount-util.c

index 840e94a..f0bc9ca 100644 (file)
@@ -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));