From: Peter Krempa Date: Fri, 20 Mar 2026 14:13:59 +0000 (+0100) Subject: qemuTranslateSnapshotDiskSourcePool: Use proper error code X-Git-Tag: v12.2.0-rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7abfcef53cd69667ee6696be6d4917ef9985aff2;p=thirdparty%2Flibvirt.git qemuTranslateSnapshotDiskSourcePool: Use proper error code The operation is not implemented so it's not really an internal error. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 712422f995..b2ced2baf0 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -1808,7 +1808,7 @@ qemuTranslateSnapshotDiskSourcePool(virDomainSnapshotDiskDef *def) if (def->src->type != VIR_STORAGE_TYPE_VOLUME) return 0; - virReportError(VIR_ERR_INTERNAL_ERROR, "%s", + virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s", _("Snapshots are not yet supported with 'pool' volumes")); return -1; }