From patchwork Wed Dec 31 22:29:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1163 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=1767220337; bh=v4VFYKxzDPYbptv0hTbRFb8zDJy/0qm/NNz64GuWWFc=; 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=c4N6Uy/BwP+FMRxAn1mIQSADnDbtK5j1GC1h1r6O4ppS012xLHTmcNUOjwAr1o5W3 gcOcxn6HxKYicMsSeXBP/pAbWUM+p9ibsN+lEjHRgG4RqSCtqYy5W7Z8QZmWdR6NC/ L2UWd1l9vb28DtjY40BiupUD80oy4oSBE625hsFYWtJ/aGEFpKoRkhRKJU6+DylNCe fF4/07wVDm2xeOgHRb5RGHnMX2oXa713RPWUB8u9jSzLndjRWG8DSIfkMBMv08PqZC JLgfWas9OqD9lULbHs7lLtWDQN7bG4E5pOOI3opUm1+JQG1bAWv2Go3ZkuQojpHxsd lfypYUHzZnYyQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 8ED9B68FD3 for ; Wed, 31 Dec 2025 15:32:17 -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 vJ2649I2H0Ql for ; Wed, 31 Dec 2025 15:32:17 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767220337; bh=v4VFYKxzDPYbptv0hTbRFb8zDJy/0qm/NNz64GuWWFc=; 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=c4N6Uy/BwP+FMRxAn1mIQSADnDbtK5j1GC1h1r6O4ppS012xLHTmcNUOjwAr1o5W3 gcOcxn6HxKYicMsSeXBP/pAbWUM+p9ibsN+lEjHRgG4RqSCtqYy5W7Z8QZmWdR6NC/ L2UWd1l9vb28DtjY40BiupUD80oy4oSBE625hsFYWtJ/aGEFpKoRkhRKJU6+DylNCe fF4/07wVDm2xeOgHRb5RGHnMX2oXa713RPWUB8u9jSzLndjRWG8DSIfkMBMv08PqZC JLgfWas9OqD9lULbHs7lLtWDQN7bG4E5pOOI3opUm1+JQG1bAWv2Go3ZkuQojpHxsd lfypYUHzZnYyQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7E4D568F61 for ; Wed, 31 Dec 2025 15:32:17 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767220335; bh=SryMyZRelmcgAZN6uLSmouoSeVIgqUsFoGp6OL5qeGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HAmQRAMGf9PiFTNCVZIcc6DU7oPFReqrGNXtq5qkMrBMTOK+2hrqELXJED/TpIwMg vIWP3m6RVGAqyU2plRR9SQrUj9R6YtaTQqJ7Xth9P5AcOBKfzob95RmJ+Ceuv7s3Yj 9ViE9pktmFsEuCa1OCJI4Thu4SQmUK7R2RIRc758sQa5nS4Xp8MEZdT7DZRunZ3pIu J/nh8J6JSyoZjNrMk75fJhSnz85qPFETOtze1YDECSbZXctjzWNzc6BxDFwdguVvky HDnyXa09SG2lcT1Oh3YarpB4lUDwxAoTxm2+Nbw4J9/lHioGaWKu3KIcfwUc1g7ogZ cbQHp6x+GDsCA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 62E7A68F61; Wed, 31 Dec 2025 15:32:15 -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 h5dBTuZoO1Nb; Wed, 31 Dec 2025 15:32:15 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767220329; bh=q+Q5R5PV556GM1fAlKzxaZLKWnt8mLKbuAJnSieJyUc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TuIVViX4RWFoAlbac3Bo8AvzokR57rNTR5E21ZD3qhgZBKk9rC8UUBX+4Io/fRxss lEtIbWagAvQ9gfNsce1p8nokWECW5Nve7gg9ZBLNy/u7l49nP1k7jb/Ho9HFjQsW7n QtUL0SFEJOsFqGQsdz7herOSDw86JhPsKAnng2J33TtZ75ippJHJaVzOmWWhsfxVoi /I34YyH5q9U4hk7IT1+fPek4mjxWIgS94MDedXqeBugtbbKRsu4lhWZjdS+x77sTtY 8uIC4/uC1mQxveJ+4QG1OzhoeARvyDQATqlvGleYhKMhINlgFvqdr5EWo7uQ3nYmp0 OTYcVvnxzLgpg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id F2FC568F51; Wed, 31 Dec 2025 15:32:08 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 31 Dec 2025 15:29:58 -0700 Message-ID: <20251231223008.3251711-26-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251231223008.3251711-1-sjg@u-boot.org> References: <20251231223008.3251711-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 7ZS7576IJWBPPJ2UQJXX2E3G4QWZEC2H X-Message-ID-Hash: 7ZS7576IJWBPPJ2UQJXX2E3G4QWZEC2H 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 25/26] 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 --- 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):