mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue