From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5DAEDC636C9 for ; Wed, 21 Jul 2021 17:29:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0ABD761248 for ; Wed, 21 Jul 2021 17:29:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235551AbhGUQtM (ORCPT ); Wed, 21 Jul 2021 12:49:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbhGUQtL (ORCPT ); Wed, 21 Jul 2021 12:49:11 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93B14C061575; Wed, 21 Jul 2021 10:29:46 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id bu12so4482179ejb.0; Wed, 21 Jul 2021 10:29:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XP0iAPTzXCS6/hXN5afn3pCSvhDsfbRfFxq+vdKUGU8=; b=TWWXO8Wznrfh3IEb+hXEjiNusl0FD/72xovtttyL5WjrF/Ze4BgxjMwxkP2/KJB6Y8 m2dHFVKSV7yt1eRra8XALcC9TGq+9kJ97VYMxIsW4EIdmRBKJqMPhsf+aeB9vzl4MCcQ g41p8gXVEk51SiDFzZ5DpUxLteBk48kOLOMLHiy2mlSDJdD6qJgB0a0+fgSw/Qb/sKhF DaH3TG9QNVSHHSm1pOHI7yNP2csO37NZv8yguDkDVZELfc05Cl1r13sG58hnLI1vhnhZ 92Uoyj884HVys25GJ2canrGoL0tpmS+CYhOKNTtJ1ssWIgAPTSMjcDba/h0+sgCarVXA DS2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XP0iAPTzXCS6/hXN5afn3pCSvhDsfbRfFxq+vdKUGU8=; b=M2Z0GaHxQouinZiYZ+GOy1+1UdhfEzZGPdmqLzDQxGn8j2yOjrkWxrHRUZYSEnm7Jm p1e2AyqcMS8HfLX1qP+eVRDjMrknCsEmBgmmD7GtsCau3e7lcDdjNWEmHWLZ4RECFLJV QWQW4hzGU2BfosySzW8MFyRaUHLBWdAIeo10pdp88c/GA/tR6IAPrLDcIYPDQsg6e29e /hGNVnFAn6mrxEs+5uig90XRXv2ZD0F9m3EQPonBlS9xyvGvklo1w7ecIwQE0rMkLeI7 c4ZV03rpRVLFiXXUgBN/UzzuMBaS9ZfWPR3+x04Uj6LOdpfZKaKgQi6BrioV+zInyc4o AjVQ== X-Gm-Message-State: AOAM530YIoMDpD3FvcDnTKQca3xWMVD+DWR5SXRKG/EbYriGMPXRbMAV 73Xjj+3TBWaKXK6UrR2JWGWY4QCyRupHTcxCGcE= X-Google-Smtp-Source: ABdhPJxVd/rBQsk/2obbH5UlqtV4a0WbF0Li9IC6O9OpXl6Zt+WB0yfa2RTbxjYDls2VAOQ7rBIZWAci0SlwjWWDCjc= X-Received: by 2002:a17:907:2125:: with SMTP id qo5mr39615957ejb.252.1626888585194; Wed, 21 Jul 2021 10:29:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pintu Agarwal Date: Wed, 21 Jul 2021 22:59:33 +0530 Message-ID: Subject: Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue To: Mikulas Patocka Cc: open list , Phillip Lougher , linux-fsdevel , linux-mtd , dm-devel@redhat.com, Kernelnewbies , agk@redhat.com, snitzer@redhat.com, shli@kernel.org, Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Jul 2021 at 22:40, Mikulas Patocka 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