From patchwork Fri Jan 2 00:50:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1193 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767315187; bh=1Aky3t/LUOD6Ctsrb3UVGBMQVXlpYrz1SlEIcCxK0oo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ZoQs7Zafi4mceL7BAa9Qg0TSGBmYafoG3HU+Ptw4Bd/9rVar689+sG+1eJIZgCCz1 UOSR0vmVtIgAPve/7DSubmvtilfzQ3YMiVJiuIW4/mXOvLg9lcItxY2Eo5oB0U29Ud 8xpiIFp/mf8/wKboKzZezVh2+C96Btfi2ttJ11rSw5HWkZ2XZR9jTUUfTdwcf/y+Pd fm97dx+afXmBSLcY3MkAffXtNzJMI0a5W1r6zN3GjQJzYINSmMPprih5FB4eqW203Y i/J0xA+TMsOJ1jNujGEuHOKnRfKBNdCTw3rLwjnzMUdcgz4y0btF+MdIaBKcPSK0gP cDEyOCD8fwOoA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0BE9C6902E for ; Thu, 1 Jan 2026 17:53:07 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id SM9WItgfS7aY for ; Thu, 1 Jan 2026 17:53:06 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767315186; bh=1Aky3t/LUOD6Ctsrb3UVGBMQVXlpYrz1SlEIcCxK0oo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ML1b2fIaMhnz8EWq5OAE3+dE6Yi47yY873T2PN2jxCAh0z/zz8jsIzBfpTSk2zFi/ /BOmneHclxx5Hz8ZDvbcdobnnsnyLM/ov78jZSmIr5IVd7W3bXgfG++n7m7tWe6CLr LU5DJjiz/365hZcBgTLvONMd+j9bkjHz+mzryCG0xtLN6feenvSTvCcJXz0KxVqAGt LVfOxbclZiRXvpDiWh1Rtte9IRaspjLZfJ+ej8hyx0JiWbP2DDWXiI5QiozGQ0coyV DGEmWmxqL64fUv6nZ0yGK92lKlVmRWJyauzH9mniL2bEcYLxLeFWde8GLBKl2so0J6 g7gSoL6DuW5Xg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E7ABB68F58 for ; Thu, 1 Jan 2026 17:53:06 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767315186; bh=zKWtHgGdsGHGfx7yOLEMVzi9f/Qbmha3m8BqQqkoSt0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=grs9UmicZB3txt3VeZF7syddr7EZnlotVl6WLYk5WQLUVmRUf0dQ4F97Voac5/9IQ siXfa2JYXIQpFVrzkUazKwk58c0m1Rp+cBapbPyxrHs4NGeNf2OJ1Bpk+vs2YKWLWm 3sLXucsy0L4DT9dc//QietiSCTMehSHT5pipDdieEsIXM9+oHWdd/uxQhUp4zYe/Gy lbI+HxcK+CB9Pum2+Sx62oXHNtZPKKnV6/Iv/cNj0KRdh5myHAA35kD1RaM9wjyGa4 KBPdRgGaXGof+OdExrJk9z2BVbm57hJIHWa2GxEKvv4DyTRHq8PRvXiTiVokW8WpYS jDnCcjK47KfbA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 2673868F53; Thu, 1 Jan 2026 17:53:06 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id n9ybt5fv9SAQ; Thu, 1 Jan 2026 17:53:06 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767315178; bh=Nw14O8+Mrz62+78aPIzd7wZbuccyep4X75qpEQHmSkw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kccilsias+DDzsZ9+ewd7GWiNopXODcTd117A80s7b19kC+oe7S9BVnYnF8407LKL BdiEPMhEQBl4EIDo/7IY239Rovl2ZHXF18mK5VrYW735IXxdLK8gdOOzZhu43VD34v ZrHaaAhD2t/N3WLZe0eiVOPcxRn+ofkrJgTh/EJd4xHpvF2wME/nNaBijV5vW0IGd4 0cec3G1gYzbL2J3SXumpv40VrnEfBIuJXspqVZdvrGaaevY9JJ8UenCM7s7QOFiGWo CyE731VOThsITQs0lSIMkGE/hNjrZQZeNMU2RX3oZKQtAtqFWUjMpPLODkLPJacZpK UxJgmSF4bVaNA== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 1325568F56; Thu, 1 Jan 2026 17:52:58 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 1 Jan 2026 17:50:59 -0700 Message-ID: <20260102005112.552256-30-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260102005112.552256-1-sjg@u-boot.org> References: <20260102005112.552256-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 3GLORDTYSKGUADTNELAKKFLAPJNCH75O X-Message-ID-Hash: 3GLORDTYSKGUADTNELAKKFLAPJNCH75O X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass , Claude X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 29/30] test: fs_helper: Keep metadata_csum enabled for ext4l List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass The ext4l driver supports metadata_csum checksums, unlike the old ext4 driver. Only disable metadata_csum when CONFIG_FS_EXT4L is not enabled, allowing ext4l to use modern ext4 filesystem features. Co-developed-by: Claude Signed-off-by: Simon Glass --- (no changes since v1) test/py/tests/fs_helper.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/test/py/tests/fs_helper.py b/test/py/tests/fs_helper.py index 3c4c6e2df6f..ccde6683534 100644 --- a/test/py/tests/fs_helper.py +++ b/test/py/tests/fs_helper.py @@ -174,10 +174,15 @@ class FsHelper: stdout=DEVNULL if self.quiet else None) if self.fs_type.startswith('ext'): - sb_content = check_output(f'tune2fs -l {fs_img}', - shell=True).decode() - if 'metadata_csum' in sb_content: - check_call(f'tune2fs -O ^metadata_csum {fs_img}', shell=True) + # ext4l supports metadata_csum; the old ext4 driver does not. + # Only disable metadata_csum when using the old driver. + if self.config and self.config.buildconfig.get( + 'config_fs_ext4l', 'n') != 'y': + sb_content = check_output(f'tune2fs -l {fs_img}', + shell=True).decode() + if 'metadata_csum' in sb_content: + check_call(f'tune2fs -O ^metadata_csum {fs_img}', + shell=True) elif fs_lnxtype == 'exfat': check_call(f'fattools cp {self.srcdir}/* {fs_img}', shell=True) elif self.srcdir and os.listdir(self.srcdir):