rescue: Add -w|--rw option.

This commit is contained in:
Richard W.M. Jones
2011-03-30 16:33:14 +01:00
parent 3824935411
commit 4155d20014
2 changed files with 13 additions and 0 deletions

View File

@@ -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;

View File

@@ -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.