From: Peter Krempa Date: Tue, 5 Dec 2023 16:19:19 +0000 (+0100) Subject: virsh: migrate: Interlock '--copy-storage-all' and '--copy-storage-inc' X-Git-Tag: v10.0.0-rc1~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=831c55ae3ecea4b3d413679cde67b31813678ece;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Michal Privoznik --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 66f933dead..afb8c401da 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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");