From a43bd2a87d70e9651f0be459cad53fabdf74f161 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Fri, 7 Jul 2000 19:52:10 +0000 Subject: when a mount fails, retry w/ readonly before failing --- collage/commands.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'collage') diff --git a/collage/commands.c b/collage/commands.c index c27fae26c..3323d9631 100644 --- a/collage/commands.c +++ b/collage/commands.c @@ -122,8 +122,10 @@ int mountCommand(int argc, char ** argv) { } if (doPwMount(dev, dir, fs, 0, 1, NULL, NULL)) { - fprintf(stderr, "mount failed: %s\n", strerror(errno)); - return 1; + if (doPwMount(dev, dir, fs, 1, 1, NULL, NULL)) { + fprintf(stderr, "mount failed: %s\n", strerror(errno)); + return 1; + } } return 0; -- cgit