mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
qemu: domain: Remove code assuming disk format probing
After commit c95f50cb021ea9a297 we always set a disk format in the post parse callback so the code that mandates use of explicit format for shareable disks no longer makes sense. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
767f9e1449
commit
9ac3ea5cf8
@ -4642,20 +4642,12 @@ qemuDomainDeviceDefValidateDisk(const virDomainDiskDef *disk,
|
||||
const char *driverName = virDomainDiskGetDriver(disk);
|
||||
virStorageSourcePtr n;
|
||||
|
||||
if (disk->src->shared && !disk->src->readonly) {
|
||||
if (disk->src->format <= VIR_STORAGE_FILE_AUTO) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("shared access for disk '%s' requires use of "
|
||||
"explicitly specified disk format"), disk->dst);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!qemuBlockStorageSourceSupportsConcurrentAccess(disk->src)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("shared access for disk '%s' requires use of "
|
||||
"supported storage format"), disk->dst);
|
||||
return -1;
|
||||
}
|
||||
if (disk->src->shared && !disk->src->readonly &&
|
||||
!qemuBlockStorageSourceSupportsConcurrentAccess(disk->src)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("shared access for disk '%s' requires use of "
|
||||
"supported storage format"), disk->dst);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (disk->geometry.cylinders > 0 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user