LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Pintu Agarwal <pintu.ping@gmail.com>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: open list <linux-kernel@vger.kernel.org>,
Phillip Lougher <phillip@squashfs.org.uk>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
linux-mtd <linux-mtd@lists.infradead.org>,
dm-devel@redhat.com,
Kernelnewbies <kernelnewbies@kernelnewbies.org>,
agk@redhat.com, snitzer@redhat.com, shli@kernel.org,
Sami Tolvanen <samitolvanen@google.com>
Subject: Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue
Date: Wed, 21 Jul 2021 22:59:33 +0530 [thread overview]
Message-ID: <CAOuPNLi-xz_4P+v45CHLx00ztbSwU3_maf4tuuyso5RHyeOytg@mail.gmail.com> (raw)
In-Reply-To: <alpine.LRH.2.02.2107211300520.10897@file01.intranet.prod.int.rdu2.redhat.com>
On Wed, 21 Jul 2021 at 22:40, Mikulas Patocka <mpatocka@redhat.com> wrote:
> > >
> > > Try to set up dm-verity with block size 512 bytes.
> > >
> > > I don't know what block size does squashfs use, but if the filesystem
> > > block size is smaller than dm-verity block size, it doesn't work.
> > >
> > Okay thank you so much for this clue,
> > It seems we are using 65536 as the squashfs block size:
>
> 65536 is the compression block size - it is unrelated to I/O block size.
>
> There's a config option SQUASHFS_4K_DEVBLK_SIZE. The documentation says
> that it uses by default 1K block size and if you enable this option, it
> uses 4K block size.
>
Okay it seems this config is set in our case:
CONFIG_SQUASHFS_4K_DEVBLK_SIZE=y
So, with this the squashfs and dm-verity block size exactly matches (4K)
> So, try to set it. Or try to reduce dm-verity block size down to 1K.
>
Okay we are trying this.
Thank you so much!!
Regards,
Pintu
next prev parent reply other threads:[~2021-07-21 17:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-20 9:38 Pintu Agarwal
2021-07-20 11:41 ` Mikulas Patocka
2021-07-21 15:00 ` Pintu Agarwal
2021-07-21 17:10 ` Mikulas Patocka
2021-07-21 17:29 ` Pintu Agarwal [this message]
2021-08-30 16:25 ` Pintu Agarwal
2021-08-30 16:55 ` Thomas Petazzoni
2021-08-30 18:18 ` Pintu Agarwal
2021-08-30 19:12 ` Thomas Petazzoni
2021-08-31 13:19 ` Pintu Agarwal
2021-09-06 16:28 ` Pintu Agarwal
2021-09-08 11:27 ` Pintu Agarwal
2021-09-08 12:08 ` Greg KH
2021-10-29 15:51 ` Pintu Agarwal
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=CAOuPNLi-xz_4P+v45CHLx00ztbSwU3_maf4tuuyso5RHyeOytg@mail.gmail.com \
--to=pintu.ping@gmail.com \
--cc=agk@redhat.com \
--cc=dm-devel@redhat.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=mpatocka@redhat.com \
--cc=phillip@squashfs.org.uk \
--cc=samitolvanen@google.com \
--cc=shli@kernel.org \
--cc=snitzer@redhat.com \
--subject='Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).