From fc7da04ccd2871a64447dff531ca332decb4bc0d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 25 Jul 2014 16:03:09 +0100 Subject: [PATCH] daemon: Add extra debugging to umount_all command. No functional change, just prints some more debug messages. --- daemon/mount.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/mount.c b/daemon/mount.c index 6a679a4e7..c5b7d89e4 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -390,6 +390,12 @@ do_umount_all (void) } while ((m = getmntent (fp)) != NULL) { + if (verbose) { + fprintf (stderr, "umount-all: /proc/mounts: fsname=%s dir=%s type=%s opts=%s freq=%d passno=%d\n", + m->mnt_fsname, m->mnt_dir, m->mnt_type, m->mnt_opts, + m->mnt_freq, m->mnt_passno); + } + /* Allow a mount directory like "/sysroot". */ if (sysroot_len > 0 && STREQ (m->mnt_dir, sysroot)) { if (add_string (&mounts, m->mnt_dir) == -1) {