From b19ae5b47e134eaaad05cc1d0828dbf960ce4d24 Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Mon, 4 Oct 2021 17:29:19 +0200 Subject: [PATCH] import: don't check for 1K aligned size TPM state disks on directory storages may have completely unaligned sizes, this check doesn't make sense for them. This appears to just be a (weak) safeguard and not serve an actual functional purpose, so simply get rid of it to allow migration of TPM state. Signed-off-by: Stefan Reiter --- PVE/Storage/Plugin.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index 417d1fd..fab2316 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -1353,7 +1353,6 @@ sub read_common_header($) { sysread($fh, my $size, 8); $size = unpack('Q<', $size); die "import: no size found in export header, aborting.\n" if !defined($size); - die "import: got a bad size (not a multiple of 1K), aborting.\n" if ($size&1023); # Size is in bytes! return $size; }