Re: dm-integrity: estimate the size needed for separate integrity device

Max Gautier <[email protected]> Mon, 8 Jun 2026 09:05:27 +0200
Newsgroups dev.linux.lists.cryptsetup
Message-ID <aiZpt6MeB-QmmsfB@framework>
On Sun, Jun 07, 2026 at 03:08:41PM +0200, Milan Broz wrote:

> ...
> Actually, integritysetup should check device size before activation...

I don't know about activation, but at least format does some kind of
check (delegated to the kernel, maybe ?): I used trial and errors to
confirm the calculation (running `integritysetup format` resizing the
metadata device between each attempts) and by resizing below a certain
threshold, I obtained every time a error.

I did not write it down (the error message) but it didn't hint to the
size of the metadata device at all, it was only clear because I only
changed the size between two attempts.

-- 
Max Gautier