Cryptsetup development
 help / color / mirror / Atom feed
From: Max Gautier <mg@max.gautier.name>
To: Milan Broz <gmazyland@gmail.com>
Cc: cryptsetup@lists.linux.dev, Mikulas Patocka <mpatocka@redhat.com>
Subject: Re: dm-integrity: estimate the size needed for separate integrity device
Date: Mon, 8 Jun 2026 09:05:27 +0200	[thread overview]
Message-ID: <aiZpt6MeB-QmmsfB@framework> (raw)
In-Reply-To: <20e7ea6e-1583-4274-a243-05e52f206a18@gmail.com>

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

      reply	other threads:[~2026-06-08  7:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-01  7:50 dm-integrity: estimate the size needed for separate integrity device Max Gautier
2026-06-07 13:08 ` Milan Broz
2026-06-08  7:05   ` Max Gautier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aiZpt6MeB-QmmsfB@framework \
    --to=mg@max.gautier.name \
    --cc=cryptsetup@lists.linux.dev \
    --cc=gmazyland@gmail.com \
    --cc=mpatocka@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox