mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
virsh: remove reference to migration in blockcopy
This commit is contained in:
parent
13fefaf37f
commit
c0fab87106
@ -1468,13 +1468,13 @@ cmdBlockCopy(vshControl *ctl, const vshCmd *cmd)
|
|||||||
}
|
}
|
||||||
if (vshCommandOptInt(cmd, "timeout", &timeout) > 0) {
|
if (vshCommandOptInt(cmd, "timeout", &timeout) > 0) {
|
||||||
if (timeout < 1) {
|
if (timeout < 1) {
|
||||||
vshError(ctl, "%s", _("migrate: Invalid timeout"));
|
vshError(ctl, "%s", _("invalid timeout"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Ensure that we can multiply by 1000 without overflowing. */
|
/* Ensure that we can multiply by 1000 without overflowing. */
|
||||||
if (timeout > INT_MAX / 1000) {
|
if (timeout > INT_MAX / 1000) {
|
||||||
vshError(ctl, "%s", _("migrate: Timeout is too big"));
|
vshError(ctl, "%s", _("timeout is too big"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
timeout *= 1000;
|
timeout *= 1000;
|
||||||
|
Loading…
Reference in New Issue
Block a user