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 /fish/inspect.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 'fish/inspect.c')
-rw-r--r-- | fish/inspect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fish/inspect.c b/fish/inspect.c index 713501e9..5e1948cd 100644 --- a/fish/inspect.c +++ b/fish/inspect.c @@ -73,6 +73,12 @@ compare_keys (const void *p1, const void *p2) void inspect_mount (void) { + if (live) { + fprintf (stderr, _("%s: don't use --live and -i options together\n"), + program_name); + exit (EXIT_FAILURE); + } + inspect_do_decrypt (); char **roots = guestfs_inspect_os (g); |