From: Richard W.M. Jones Date: Wed, 30 Mar 2011 15:33:14 +0000 (+0100) Subject: rescue: Add -w|--rw option. X-Git-Tag: 1.8.5~14 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=22ec8330ac8d2573aa64f14e1674ae2501f7d3b3;p=libguestfs.git rescue: Add -w|--rw option. Note this has been backported to the 1.8 branch to allow us to write documentation which refers to the virt-rescue --rw option. The option does nothing in 1.8. (cherry picked from commit 4155d20014b24b2203c4dd8b00e2e19450a7e3bb) --- diff --git a/rescue/virt-rescue.c b/rescue/virt-rescue.c index 6470733..0c0c1fb 100644 --- a/rescue/virt-rescue.c +++ b/rescue/virt-rescue.c @@ -75,6 +75,7 @@ usage (int status) " --selinux Enable SELinux\n" " -v|--verbose Verbose messages\n" " -V|--version Display version and exit\n" + " -w|--rw Mount read-write\n" " -x Trace libguestfs API calls\n" "For more information, see the manpage %s(1).\n"), program_name, program_name, program_name, @@ -106,6 +107,7 @@ main (int argc, char *argv[]) { "memsize", 1, 0, 'm' }, { "network", 0, 0, 0 }, { "ro", 0, 0, 'r' }, + { "rw", 0, 0, 'w' }, { "selinux", 0, 0, 0 }, { "verbose", 0, 0, 'v' }, { "version", 0, 0, 'V' }, @@ -188,6 +190,10 @@ main (int argc, char *argv[]) OPTION_V; break; + case 'w': + OPTION_w; + break; + case 'x': OPTION_x; break; diff --git a/rescue/virt-rescue.pod b/rescue/virt-rescue.pod index 415bcda..9dbdd5e 100755 --- a/rescue/virt-rescue.pod +++ b/rescue/virt-rescue.pod @@ -184,6 +184,13 @@ Enable verbose messages for debugging. Display version number and exit. +=item B<-w> + +=item B<--rw> + +This option does nothing at the moment. +See L. + =item B<-x> Enable tracing of libguestfs API calls.