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 /fuse/guestmount.c | |
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 'fuse/guestmount.c')
-rw-r--r-- | fuse/guestmount.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fuse/guestmount.c b/fuse/guestmount.c index 3d3da39d..6adf1404 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -59,6 +59,7 @@ guestfs_h *g = NULL; int read_only = 0; +int live = 0; int verbose = 0; int inspector = 0; int keys_from_stdin = 0; @@ -879,6 +880,7 @@ usage (int status) " -i|--inspector Automatically mount filesystems\n" " --help Display help message and exit\n" " --keys-from-stdin Read passphrases from stdin\n" + " --live Connect to a live virtual machine\n" " -m|--mount dev[:mnt] Mount dev on mnt (if omitted, /)\n" " -n|--no-sync Don't autosync\n" " -o|--option opt Pass extra option to FUSE\n" @@ -917,6 +919,7 @@ main (int argc, char *argv[]) { "help", 0, 0, HELP_OPTION }, { "inspector", 0, 0, 'i' }, { "keys-from-stdin", 0, 0, 0 }, + { "live", 0, 0, 0 }, { "mount", 1, 0, 'm' }, { "no-sync", 0, 0, 'n' }, { "option", 1, 0, 'o' }, @@ -1017,6 +1020,8 @@ main (int argc, char *argv[]) keys_from_stdin = 1; } else if (STREQ (long_options[option_index].name, "echo-keys")) { echo_keys = 1; + } else if (STREQ (long_options[option_index].name, "live")) { + live = 1; } else { fprintf (stderr, _("%s: unknown long option: %s (%d)\n"), program_name, long_options[option_index].name, option_index); |