mirror of
git://git.proxmox.com/git/pve-storage.git
synced 2025-01-05 09:17:59 +03:00
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 <s.reiter@proxmox.com>
This commit is contained in:
parent
838e0632f7
commit
b19ae5b47e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user