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:
0e37af8
)
Patch from Jason Schoon to make mount -a not abort on the first failure.
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 19 May 2006 10:45:16 +0000
(10:45 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 19 May 2006 10:45:16 +0000
(10:45 -0000)
(r15005 from trunk)
util-linux/mount.c
patch
|
blob
|
history
diff --git
a/util-linux/mount.c
b/util-linux/mount.c
index 68f48355539e41ecee669e75938e3fb4bf3b67a8..61ceba82980c25bf90c1fc4b766bb50f691d4e3f 100644
(file)
--- a/
util-linux/mount.c
+++ b/
util-linux/mount.c
@@
-533,11
+533,13
@@
int mount_main(int argc, char **argv)
// Mount this thing.
- rc = singlemount(mtcur);
- if (rc) {
+ if (singlemount(mtcur)) {
// Don't whine about already mounted fs when mounting all.
- if (errno == EBUSY) rc = 0;
- else break;
+ // Note: we should probably change return value to indicate
+ // failure, without causing a duplicate error message.
+ if (errno != EBUSY) bb_perror_msg("Mounting %s on %s failed",
+ mtcur->mnt_fsname, mtcur->mnt_dir);
+ rc = 0;
}
}
}