From b2aa996f4322e2f90d034ca3aa03260631404712 Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Wed, 5 Mar 2025 11:49:17 +0100 Subject: [PATCH] drive: remove ancient 'cow' from formats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The format was dropped in QEMU binary version 2.2 with commit 550830f935 ("block: delete cow block driver"). Very old backups might still include this format as a hint (the data in the backup is present in raw/chunk format in any case), but that is not an issue. Restore already checks that the target storage supports a given format and defaults to the default format of the storage if the hint does not apply. Signed-off-by: Fiona Ebner Acked-by: Fabian Grünbichler Reviewed-by: Fabian Grünbichler --- PVE/QemuServer/Drive.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer/Drive.pm b/PVE/QemuServer/Drive.pm index 1041c1dd..81e1aa04 100644 --- a/PVE/QemuServer/Drive.pm +++ b/PVE/QemuServer/Drive.pm @@ -26,11 +26,11 @@ parse_drive print_drive ); -our $QEMU_FORMAT_RE = qr/raw|cow|qcow|qcow2|qed|vmdk|cloop/; +our $QEMU_FORMAT_RE = qr/raw|qcow|qcow2|qed|vmdk|cloop/; PVE::JSONSchema::register_standard_option('pve-qm-image-format', { type => 'string', - enum => [qw(raw cow qcow qed qcow2 vmdk cloop)], + enum => [qw(raw qcow qed qcow2 vmdk cloop)], description => "The drive's backing file's data format.", optional => 1, });