]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vz: fix vzCheckUnsupportedDisks format checks for cdroms
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 8 Apr 2016 07:41:32 +0000 (10:41 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Tue, 17 May 2016 10:35:28 +0000 (13:35 +0300)
commitcaff6b8043df9134b8dda1c84f1c828135a2b990
treeeeb107274f3e6905639b8723139e18126571a727
parent38e1e06845c45b2e6169798d1194622f47a2f113
vz: fix vzCheckUnsupportedDisks format checks for cdroms

Current version of the function does not check format of cdroms at all.
At the same time prlsdkGetDiskInfo give hints that cdroms always
have format VIR_STORAGE_FILE_RAW. So fix vzCheckUnsupportedDisks.

About structure of checks. As we don't have means to store format
in SDK we always have only one format in every situation. So instead
of setting boolean let's get allowed format instead and finally compare
it to the requested. This structure of checks seems stable to me
because we have only one format in every situation.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
src/vz/vz_utils.c