]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vz: fix disk enumeration v1.3.4-rc2
authorMikhail Feoktistov <mfeoktistov@virtuozzo.com>
Wed, 27 Apr 2016 15:37:27 +0000 (11:37 -0400)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 28 Apr 2016 18:24:09 +0000 (20:24 +0200)
commitcdbbb93a968bdf297c0aa47a3f161ffd76136dca
treef1a54017e8c2bbc668ef0107639a44114dfaf783
parent4d28d0931f87177a762f6a78cfdbcc2e30d6d4af
vz: fix disk enumeration

If we want to delete all disks for container or vm
we should make a loop from 0 to NumberOfDisks and always
use zero index in PrlVmCfg_GetHardDisk to get disk handle.
When we delete first disk after that numbers of other disks
will be changed, start from 0 to NumberOfDisks-1.
That's why we should always use zero index.
src/vz/vz_sdk.c