diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-01-28 19:25:02 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-02-03 18:50:45 +0000 |
commit | a20e5c00c35490fa29668630113a01240a69b701 (patch) | |
tree | 18b2ae239bc64d2a5f48aea73242057de1552845 /cat | |
parent | 2020eded8a3f381c722abe001be8000723ff2418 (diff) | |
download | libguestfs-a20e5c00c35490fa29668630113a01240a69b701.tar.gz libguestfs-a20e5c00c35490fa29668630113a01240a69b701.tar.xz libguestfs-a20e5c00c35490fa29668630113a01240a69b701.zip |
fish: Add guestfish --live, guestmount --live options.
The other programs have the variable, but the flag is not enabled
either because it doesn't make sense or because the implications are
not well understood.
Diffstat (limited to 'cat')
-rw-r--r-- | cat/virt-cat.c | 2 | ||||
-rw-r--r-- | cat/virt-filesystems.c | 2 | ||||
-rw-r--r-- | cat/virt-ls.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/cat/virt-cat.c b/cat/virt-cat.c index 470c70cc..834d490c 100644 --- a/cat/virt-cat.c +++ b/cat/virt-cat.c @@ -34,6 +34,7 @@ guestfs_h *g; int read_only = 1; +int live = 0; int verbose = 0; int keys_from_stdin = 0; int echo_keys = 0; @@ -213,6 +214,7 @@ main (int argc, char *argv[]) */ assert (read_only == 1); assert (inspector == 1); + assert (live == 0); /* User must specify at least one filename on the command line. */ if (optind >= argc || argc - optind < 1) diff --git a/cat/virt-filesystems.c b/cat/virt-filesystems.c index cd991e85..7eca9ebc 100644 --- a/cat/virt-filesystems.c +++ b/cat/virt-filesystems.c @@ -46,6 +46,7 @@ guestfs_h *g; int read_only = 1; +int live = 0; int verbose = 0; int keys_from_stdin = 0; int echo_keys = 0; @@ -301,6 +302,7 @@ main (int argc, char *argv[]) */ assert (read_only == 1); assert (inspector == 0); + assert (live == 0); /* Must be no extra arguments on the command line. */ if (optind != argc) diff --git a/cat/virt-ls.c b/cat/virt-ls.c index 64bae46e..315fb1ff 100644 --- a/cat/virt-ls.c +++ b/cat/virt-ls.c @@ -35,6 +35,7 @@ guestfs_h *g; int read_only = 1; +int live = 0; int verbose = 0; int keys_from_stdin = 0; int echo_keys = 0; @@ -227,6 +228,7 @@ main (int argc, char *argv[]) */ assert (read_only == 1); assert (inspector == 1); + assert (live == 0); /* User must specify at least one directory name on the command line. */ if (optind >= argc || argc - optind < 1) |