]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh-domain: Drop support for old APIs in cmdSetmem and cmdSetmaxmem
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 19 May 2021 09:58:27 +0000 (11:58 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Jun 2021 08:13:50 +0000 (10:13 +0200)
commitce8138564bba0def7d7195814fba4555915d60d5
treeed6dab4928489aa898b90f2da0df0b1867bef1dd
parente76ec0fe65d83f4947136ff9a0a87f03c94d82e2
virsh-domain: Drop support for old APIs in cmdSetmem and cmdSetmaxmem

Some of our really old APIs are missing @flags argument. We
introduced their variants with "Flags" suffix and wired some
logic into virsh to call the new variant only if necessary. This
enables virsh to talk to older daemon which may be lacking new
APIs.

However, in case of cmdSetmem() we are talking about v0.1.1
(virDomainSetMemory()) vs. v0.9.0 (virDomainSetMemoryFlags()) and
in case of cmdSetmaxmem() we are talking about v0.0.3
(virDomainSetMaxMemory()) vs v0.9.0 (virDomainSetMemoryFlags()).

Libvirt v0.9.0 was released more than 10 years ago and recently
we dropped support for RHEL-7 which has v4.5.0 (released ~3 years
ago). Thus it is not really necessary to have support in virsh
for such old daemons.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tools/virsh-domain.c