diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-11-05 18:36:02 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-11-08 10:21:48 +0000 |
commit | 2c4a7ef92a4583a1217213573ad406eb5d745990 (patch) | |
tree | a89f3f039f2333b27fa6e9ac198f86c13adef80a /fish/fish.c | |
parent | 26118d498eefe10c8fa604f949680d2417c8b25c (diff) | |
download | libguestfs-2c4a7ef92a4583a1217213573ad406eb5d745990.tar.gz libguestfs-2c4a7ef92a4583a1217213573ad406eb5d745990.tar.xz libguestfs-2c4a7ef92a4583a1217213573ad406eb5d745990.zip |
fish: Add --rw option (does nothing yet).
This adds the guestfish --rw option, intended in future
to be required for writing to disk images.
At the moment this does not change the default and so does
nothing. This patch is intended for backporting to the
stable branches so that we can start to introduce scripts
which use 'guestfish --rw'.
Diffstat (limited to 'fish/fish.c')
-rw-r--r-- | fish/fish.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fish/fish.c b/fish/fish.c index 9f20bba2..5d7aac6a 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -150,7 +150,7 @@ main (int argc, char *argv[]) enum { HELP_OPTION = CHAR_MAX + 1 }; - static const char *options = "a:c:d:Df:h::im:nN:rv?Vx"; + static const char *options = "a:c:d:Df:h::im:nN:rv?Vwx"; static const struct option long_options[] = { { "add", 1, 0, 'a' }, { "cmd-help", 2, 0, 'h' }, @@ -172,6 +172,7 @@ main (int argc, char *argv[]) { "no-progress-bars", 0, 0, 0 }, { "remote", 2, 0, 0 }, { "ro", 0, 0, 'r' }, + { "rw", 0, 0, 'w' }, { "selinux", 0, 0, 0 }, { "verbose", 0, 0, 'v' }, { "version", 0, 0, 'V' }, @@ -362,6 +363,10 @@ main (int argc, char *argv[]) OPTION_V; break; + case 'w': + OPTION_w; + break; + case 'x': OPTION_x; break; |