summaryrefslogtreecommitdiffstats
path: root/fish/inspect.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-01-28 19:25:02 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-02-03 18:50:45 +0000
commita20e5c00c35490fa29668630113a01240a69b701 (patch)
tree18b2ae239bc64d2a5f48aea73242057de1552845 /fish/inspect.c
parent2020eded8a3f381c722abe001be8000723ff2418 (diff)
downloadlibguestfs-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.c6
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);