Re: [PATCH v2] block: always fill entire LUKS header space with zeros

2020-02-07 Thread Max Reitz
On 07.02.20 14:55, Daniel P. Berrangé wrote: > When initializing the LUKS header the size with default encryption > parameters will currently be 2068480 bytes. This is rounded up to > a multiple of the cluster size, 2081792, with 64k sectors. If the > end of the header is not the same as the end

Re: [PATCH v2] block: always fill entire LUKS header space with zeros

2020-02-07 Thread Eric Blake
On 2/7/20 7:55 AM, Daniel P. Berrangé wrote: When initializing the LUKS header the size with default encryption parameters will currently be 2068480 bytes. This is rounded up to a multiple of the cluster size, 2081792, with 64k sectors. If the end of the header is not the same as the end of the

[PATCH v2] block: always fill entire LUKS header space with zeros

2020-02-07 Thread Daniel P . Berrangé
When initializing the LUKS header the size with default encryption parameters will currently be 2068480 bytes. This is rounded up to a multiple of the cluster size, 2081792, with 64k sectors. If the end of the header is not the same as the end of the cluster we fill the extra space with zeros.