mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh: migrate: Interlock '--copy-storage-all' and '--copy-storage-inc'
The API treats them as mutually exclusive and interlocks them at the library handler. Provide better error in virsh. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
b99c709d8d
commit
831c55ae3e
@ -11518,6 +11518,7 @@ cmdMigrate(vshControl *ctl, const vshCmd *cmd)
|
||||
|
||||
VSH_EXCLUSIVE_OPTIONS("live", "offline");
|
||||
VSH_EXCLUSIVE_OPTIONS("timeout-suspend", "timeout-postcopy");
|
||||
VSH_EXCLUSIVE_OPTIONS("copy-storage-all", "copy-storage-inc");
|
||||
VSH_REQUIRE_OPTION("postcopy-after-precopy", "postcopy");
|
||||
VSH_REQUIRE_OPTION("postcopy-resume", "postcopy");
|
||||
VSH_REQUIRE_OPTION("timeout-postcopy", "postcopy");
|
||||
|
Loading…
Reference in New Issue
Block a user