logical: Only raw volumes are supported

This commit is contained in:
Richard Laager authored and Roman Bogorodskiy committed 2016-03-21 08:47:01 +03:00
1 parent 98ee86e76c
commit 6682d6219d
1 file changed
+6
+6
View File
@@ -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 "