mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
logical: Only raw volumes are supported
This commit is contained in:
parent
98ee86e76c
commit
6682d6219d
@ -912,6 +912,12 @@ virStorageBackendLogicalCreateVol(virConnectPtr conn,
|
||||
struct stat sb;
|
||||
bool created = false;
|
||||
|
||||
if (vol->target.format != VIR_STORAGE_FILE_RAW) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("only RAW volumes are supported by this storage pool"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (vol->target.encryption != NULL) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
"%s", _("storage pool does not support encrypted "
|
||||
|
Loading…
x
Reference in New Issue
Block a user