diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-20 12:37:53 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-20 13:43:55 +0100 |
commit | 52fa23d74f6308daf804c2330b0b27e0b4412594 (patch) | |
tree | eb9a813234a45f564ba8844c9cb64d198fd12295 /src/launch-unix.c | |
parent | 4df6beee54ca870faa92bcee346a671e19c80237 (diff) | |
download | libguestfs-52fa23d74f6308daf804c2330b0b27e0b4412594.tar.gz libguestfs-52fa23d74f6308daf804c2330b0b27e0b4412594.tar.xz libguestfs-52fa23d74f6308daf804c2330b0b27e0b4412594.zip |
launch: Move guestfs_config API and build list of qemu parameters in handle.
Move and rewrite guestfs_config so it accumulates a list of qemu
parameters in the handle. These are added to the appliance at launch
time (with attach method == unix:... you'll now get an error).
Diffstat (limited to 'src/launch-unix.c')
-rw-r--r-- | src/launch-unix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/launch-unix.c b/src/launch-unix.c index 3a4307ab..2d4a7a32 100644 --- a/src/launch-unix.c +++ b/src/launch-unix.c @@ -37,6 +37,11 @@ guestfs___launch_unix (guestfs_h *g, const char *sockpath) int r; struct sockaddr_un addr; + if (g->qemu_params) { + error (g, _("cannot set qemu parameters with the 'unix:' attach method")); + return -1; + } + /* Set these to nothing so we don't try to kill random processes or * read from random file descriptors. */ |