diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-03-30 16:33:14 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-03-30 16:33:14 +0100 |
commit | 4155d20014b24b2203c4dd8b00e2e19450a7e3bb (patch) | |
tree | 3121bca0148cf72146c11175bd2eb440aa422d53 | |
parent | 3824935411e8a046f0359578978447dd5a0a1a16 (diff) | |
download | libguestfs-4155d20014b24b2203c4dd8b00e2e19450a7e3bb.tar.gz libguestfs-4155d20014b24b2203c4dd8b00e2e19450a7e3bb.tar.xz libguestfs-4155d20014b24b2203c4dd8b00e2e19450a7e3bb.zip |
rescue: Add -w|--rw option.
-rw-r--r-- | rescue/virt-rescue.c | 6 | ||||
-rwxr-xr-x | rescue/virt-rescue.pod | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/rescue/virt-rescue.c b/rescue/virt-rescue.c index 01892455..8341e975 100644 --- a/rescue/virt-rescue.c +++ b/rescue/virt-rescue.c @@ -76,6 +76,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, @@ -107,6 +108,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' }, @@ -189,6 +191,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 415bcda9..9dbdd5ec 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<guestfish(1)/OPENING DISKS FOR READ AND WRITE>. + =item B<-x> Enable tracing of libguestfs API calls. |