mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
migration: Make erroring out on I/O error controllable by flag
Paolo Bonzini pointed out that it's actually possible to migrate a qemu instance that was paused due to I/O error and it will be able to work on the destination if the storage is accessible. This patch introduces flag VIR_MIGRATE_ABORT_ON_ERROR that cancels the migration in case an I/O error happens while it's being performed and allows migration without this flag. This flag can be possibly used for other error reasons that may be introduced in the future.
This commit is contained in:
committed by
Jiri Denemark
parent
ddf8ad82eb
commit
cf6d56ac43
@@ -1188,6 +1188,7 @@ typedef enum {
|
||||
VIR_MIGRATE_UNSAFE = (1 << 9), /* force migration even if it is considered unsafe */
|
||||
VIR_MIGRATE_OFFLINE = (1 << 10), /* offline migrate */
|
||||
VIR_MIGRATE_COMPRESSED = (1 << 11), /* compress data during migration */
|
||||
VIR_MIGRATE_ABORT_ON_ERROR = (1 << 12), /* abort migration on I/O errors happened during migration */
|
||||
} virDomainMigrateFlags;
|
||||
|
||||
/* Domain migration. */
|
||||
|
||||
Reference in New Issue
Block a user