From c4171ad58f61f72f5f6c6c8e711a7bcc19d20f75 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 4 Sep 2012 15:34:35 +0100 Subject: shutdown: Add 'check_for_errors' hint along the shutdown path. This hint tells the backend whether anyone cares about errors when the appliance is shut down. Currently this only has any effect on the libvirt backend, where it controls whether or not we use the VIR_DOMAIN_DESTROY_GRACEFUL flag. --- src/guestfs-internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/guestfs-internal.h') diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h index 9644cecd..9bc41f0c 100644 --- a/src/guestfs-internal.h +++ b/src/guestfs-internal.h @@ -163,7 +163,8 @@ struct qemu_param { /* Backend (attach-method) operations. */ struct attach_ops { int (*launch) (guestfs_h *g, const char *arg); /* Initialize and launch. */ - int (*shutdown) (guestfs_h *g); /* Shutdown and cleanup. */ + /* Shutdown and cleanup. */ + int (*shutdown) (guestfs_h *g, int check_for_errors); int (*get_pid) (guestfs_h *g); /* get-pid API. */ int (*max_disks) (guestfs_h *g); /* max-disks API. */ -- cgit