diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-11 15:20:20 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-11 15:20:20 +0000 |
commit | cd6f6ebd443681fdae21b550e4cd2f3deeb0d2ff (patch) | |
tree | fea209ba7bd81596fa1b1522c27677a59c24d5af /sysemu.h | |
parent | d8b92da1f08752f4e70e5b16400f6582de045955 (diff) | |
download | qemu-cd6f6ebd443681fdae21b550e4cd2f3deeb0d2ff.tar.gz qemu-cd6f6ebd443681fdae21b550e4cd2f3deeb0d2ff.tar.bz2 qemu-cd6f6ebd443681fdae21b550e4cd2f3deeb0d2ff.zip |
qemu: drive removal support (Marcelo Tosatti)
To be used by hot-remove.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6596 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sysemu.h')
-rw-r--r-- | sysemu.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -135,6 +135,7 @@ typedef struct DriveInfo { int bus; int unit; int used; + int drive_opt_idx; BlockInterfaceErrorAction onerror; char serial[21]; } DriveInfo; @@ -148,6 +149,8 @@ extern DriveInfo drives_table[MAX_DRIVES+1]; extern int drive_get_index(BlockInterfaceType type, int bus, int unit); extern int drive_get_max_bus(BlockInterfaceType type); +extern void drive_uninit(BlockDriverState *bdrv); +extern void drive_remove(int index); extern const char *drive_get_serial(BlockDriverState *bdrv); extern BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv); |