summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-10 20:32:28 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2009-12-10 20:32:28 (GMT)
commit8656676a2199e2701e7e5656ef3d2092dedd9ba5 (patch)
treef1bebf4d86c31241391255646b8e7f03a829d796
parent46a14771078744751ffa2bdb840c1bb4b005241c (diff)
downloadbusybox-8656676a2199e2701e7e5656ef3d2092dedd9ba5.tar.gz
busybox-8656676a2199e2701e7e5656ef3d2092dedd9ba5.tar.bz2
mount: "already mounted" msg appears only if -v
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/mount.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index c2b508e..e1372ea 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -1999,10 +1999,12 @@ int mount_main(int argc UNUSED_PARAM, char **argv)
// "/" may have fsname of "/dev/root" while fstab
// says "/dev/something_else".
if (mp) {
- bb_error_msg("according to %s, "
- "%s is already mounted on %s",
- bb_path_mtab_file,
- mp->mnt_fsname, mp->mnt_dir);
+ if (verbose) {
+ bb_error_msg("according to %s, "
+ "%s is already mounted on %s",
+ bb_path_mtab_file,
+ mp->mnt_fsname, mp->mnt_dir);
+ }
} else {
// ...mount this thing
if (singlemount(mtcur, /*ignore_busy:*/ 1)) {