summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-10-08 17:26:53 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-10-09 09:45:42 +0100
commit0a85fbc946d7838366c35c0425efddb1a91f593c (patch)
treebfc621b7075d563a37fdaafda05b594c0522c9c6 /src/guestfs-internal.h
parent18b7f09f366d518050f467d0944c81c82fd5e39e (diff)
downloadlibguestfs-0a85fbc946d7838366c35c0425efddb1a91f593c.tar.gz
libguestfs-0a85fbc946d7838366c35c0425efddb1a91f593c.tar.xz
libguestfs-0a85fbc946d7838366c35c0425efddb1a91f593c.zip
Add support for hotplugging (removing disks).
New API: remove-drive. Note because of a bug in fuser, this only works with psmisc >= 22.20. This also updates the hotplugging tests.
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index db9818c3..273900ef 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -169,6 +169,7 @@ struct attach_ops {
/* Hotplugging drives. */
int (*hot_add_drive) (guestfs_h *g, struct drive *drv, size_t drv_index);
+ int (*hot_remove_drive) (guestfs_h *g, struct drive *drv, size_t drv_index);
};
extern struct attach_ops attach_ops_appliance;
extern struct attach_ops attach_ops_libvirt;