]> git.ipfire.org Git - thirdparty/libvirt.git/commit
block_resize: Implement qemu driver method
authorOsier Yang <jyang@redhat.com>
Tue, 29 Nov 2011 07:36:00 +0000 (15:36 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 29 Nov 2011 13:45:18 +0000 (21:45 +0800)
commitd1a6c77acaf80ba00715a9e6476a09c0544220d9
tree8802f2139cd82f03d65f93c1e963be27a2fff9ea
parent4fa36f1392e0ca411c345e5f4c37c91182b750a0
block_resize: Implement qemu driver method

It requires the domain is running, otherwise fails. Resize to a lower
size is supported, but should be used with extreme caution.

In order to prohibit the "size" overflowing after multiplied by
1024. We do checking in the codes. For QMP mode, the default units
is Bytes, the passed size needs to be multiplied by 1024, however,
for HMP mode, the default units is "Megabytes", the passed "size"
needs to be divided by 1024 then.
src/qemu/qemu_driver.c