projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46a1477
)
mount: "already mounted" msg appears only if -v
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 10 Dec 2009 20:32:28 +0000
(21:32 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 10 Dec 2009 20:32:28 +0000
(21:32 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/mount.c
patch
|
blob
|
history
diff --git
a/util-linux/mount.c
b/util-linux/mount.c
index c2b508e5b43011cea007a8271de7e7a6d06c1e04..e1372ead5b9b9ed73f8e5cc5537ab8d196fd32ec 100644
(file)
--- 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)) {