diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-10 21:32:28 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-10 21:32:28 +0100 |
commit | 8656676a2199e2701e7e5656ef3d2092dedd9ba5 (patch) | |
tree | f1bebf4d86c31241391255646b8e7f03a829d796 | |
parent | 46a14771078744751ffa2bdb840c1bb4b005241c (diff) | |
download | busybox-w32-8656676a2199e2701e7e5656ef3d2092dedd9ba5.tar.gz busybox-w32-8656676a2199e2701e7e5656ef3d2092dedd9ba5.tar.bz2 busybox-w32-8656676a2199e2701e7e5656ef3d2092dedd9ba5.zip |
mount: "already mounted" msg appears only if -v
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | util-linux/mount.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index c2b508e5b..e1372ead5 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -1999,10 +1999,12 @@ int mount_main(int argc UNUSED_PARAM, char **argv) | |||
1999 | // "/" may have fsname of "/dev/root" while fstab | 1999 | // "/" may have fsname of "/dev/root" while fstab |
2000 | // says "/dev/something_else". | 2000 | // says "/dev/something_else". |
2001 | if (mp) { | 2001 | if (mp) { |
2002 | bb_error_msg("according to %s, " | 2002 | if (verbose) { |
2003 | "%s is already mounted on %s", | 2003 | bb_error_msg("according to %s, " |
2004 | bb_path_mtab_file, | 2004 | "%s is already mounted on %s", |
2005 | mp->mnt_fsname, mp->mnt_dir); | 2005 | bb_path_mtab_file, |
2006 | mp->mnt_fsname, mp->mnt_dir); | ||
2007 | } | ||
2006 | } else { | 2008 | } else { |
2007 | // ...mount this thing | 2009 | // ...mount this thing |
2008 | if (singlemount(mtcur, /*ignore_busy:*/ 1)) { | 2010 | if (singlemount(mtcur, /*ignore_busy:*/ 1)) { |