summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2011-01-03 11:01:42 +0100
committerKarel Zak2011-01-03 12:28:49 +0100
commite4ac4469ad869ae5b95bbc7549b9df87878d3df7 (patch)
treee9c65f3335eaba190e935751319cb3b9371c42d0
parenttests: use findmnt(8) for remount test (diff)
downloadkernel-qcow2-util-linux-e4ac4469ad869ae5b95bbc7549b9df87878d3df7.tar.gz
kernel-qcow2-util-linux-e4ac4469ad869ae5b95bbc7549b9df87878d3df7.tar.xz
kernel-qcow2-util-linux-e4ac4469ad869ae5b95bbc7549b9df87878d3df7.zip
mount: use verbose info for HAVE_LIBMOUNT_MOUNT only
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--mount/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mount/mount.c b/mount/mount.c
index 42e789f30..2528fa6f9 100644
--- a/mount/mount.c
+++ b/mount/mount.c
@@ -1315,6 +1315,8 @@ loop_check(const char **spec, const char **type, int *flags,
return 0;
}
+
+#ifdef HAVE_LIBMOUNT_MOUNT
static void
verbose_mount_info(const char *spec, const char *node, const char *type,
const char *opts, int flags)
@@ -1332,7 +1334,6 @@ verbose_mount_info(const char *spec, const char *node, const char *type,
my_free(mnt.mnt_dir);
}
-#ifdef HAVE_LIBMOUNT_MOUNT
static void
prepare_mtab_entry(const char *spec, const char *node, const char *type,
const char *opts, unsigned long flags)