X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fuse%2Fguestmount.c;h=1b3abf9788734572e2bf4e287a8890064cf23340;hb=096f341714ee7d1575c93d437a8085821aa88d23;hp=55b71d77f1d0f0d1329319857cae7e50002c87c0;hpb=a232e62dcf508517a32b9a8d7e4529e827be721b;p=libguestfs.git diff --git a/fuse/guestmount.c b/fuse/guestmount.c index 55b71d7..1b3abf9 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -884,7 +884,7 @@ main (int argc, char *argv[]) /* The command line arguments are broadly compatible with (a subset * of) guestfish. Thus we have to deal mainly with -a, -m and --ro. */ - static const char *options = "a:c:d:im:no:rv?Vx"; + static const char *options = "a:c:d:im:no:rv?Vwx"; static const struct option long_options[] = { { "add", 1, 0, 'a' }, { "connect", 1, 0, 'c' }, @@ -900,6 +900,7 @@ main (int argc, char *argv[]) { "no-sync", 0, 0, 'n' }, { "option", 1, 0, 'o' }, { "ro", 0, 0, 'r' }, + { "rw", 0, 0, 'w' }, { "selinux", 0, 0, 0 }, { "trace", 0, 0, 'x' }, { "verbose", 0, 0, 'v' }, @@ -1043,6 +1044,10 @@ main (int argc, char *argv[]) OPTION_V; break; + case 'w': + OPTION_w; + break; + case 'x': OPTION_x; ADD_FUSE_ARG ("-f");