| Message ID | 20251222115639.700578-25-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1766404677; bh=nXix9h1EXMJaI5XLe/FkfkhIT846Aa8NvixwMZZ5lXI=; 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=qpQA3LkkcUu8CigrEVYqLFIYLIwMVL4z18iWGgXUnCamfSsbYvOmSBKAHCPnKbEYj am98ZScuqSEDtm1M62nYQ1xXJ0nAzdL33i9t+CwJ9RPybKV49lIEJ40IJ7qVYWAsMw JPsa4mrWOX5fSZij2196UFVLhSHvXA9Lo/8J0jyzzwXRDoF7nQasm06BnIDf2QGEfn NVxSJgho6ulYpPfG2gOPJAATIPoCzaHRH8tf65Izje6mkSgTpszd1kXcS2xNoKzG2m A2hON28KoqHMoMSGcpYdmlW/J5IODWTl/QwCSyZ+jje7HJZMwJkJ5BURBnYYSZXO/8 b2f7NFPS65swQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 88D5664D79 for <u-boot-concept@u-boot.org>; Mon, 22 Dec 2025 04:57:57 -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 iyNhQVgFrBcC for <u-boot-concept@u-boot.org>; Mon, 22 Dec 2025 04:57:57 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404675; bh=nXix9h1EXMJaI5XLe/FkfkhIT846Aa8NvixwMZZ5lXI=; 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=KHNh+tRNDLvJQX1abJDOSgDy0QVob/BeFArCJlCMfS3hGDhxlq7Om0WfrPOpCwxCL MLwcTeeiV0FTgUC47I67z7xt8d8v8FLSkv2t1GCfcjWUCjE0bW02j0Sl2atf/82szg cDc3UfxKqAiH93LPM7YdcdVqC5CquJafLqhNlhMZ5czaPSI0ahD8lmaq1KaFIboV2E I0Gt+X0k1rSkMFs3NO47mwz3UKDEPdKCTea3ifc5S3PHdhJJr5suS3Laf1E7RRO3j+ h6HJswukZ8GrXbG0IPxenp/LuS+x0U/Cp/VgdJwBh3AVX48NoUJ+3UI4315JQYV/mV x7Zy1vqPoW7SQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 95B9864D7F for <u-boot-concept@u-boot.org>; Mon, 22 Dec 2025 04:57:55 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404673; bh=GRbMZ67MMQ7Fb3tU6+/FaOX06Yt6i424Xph5Mz3srIQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DqnKhZbcWwyMcDHgQpLjDhlSrUA+xXRbwrAiVVba1HSkjSrR3BsV8VYVPvEjKjvhQ MU6rdh9Q8na7gXSbKtsElvzY1Xs9d1OnBgs+ZjRFIp21uDjlWgI2h0m1iOElCG24eX fV8DUYQe/MWMp8IUhybF8bd0MDmSvuC5iVDOTABLBS1tdjv0aLNMJWObzlssPQSZBn EJn/+fnb2BJgicjklH0p/7RUSCdbiCVvZpnCUOYl7a28MPpBQwYqGnvuhR8rhS/MHH UJWs1cpf7zHSgIWyJvjst2/uAlYxCkoK8h2siMOFeb2uhQ/ltG5cUw7y+UWX0cxJV2 9YQi0ZYfxC7qw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5823564C31; Mon, 22 Dec 2025 04:57:53 -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 FpVpkkazUtTC; Mon, 22 Dec 2025 04:57:53 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766404673; bh=x+dRCOHP0Lrl84Lp0BL3UrBkYKoPTMBLdg7YdIUZyRI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PScWxpKwqQ62H3NUj8+4wZ1acRO9PmrWXZGjvIBrF+ddCiWJeYWCxb3C4erjfyKnJ V2WG8vfzHm2v1pjZsFqQbw1O5gc1U3ib4Nr3ZDCb8qZo4uDNYnnuHb4TsX00SYcj8j xt5sl7pZL/Kp9Np/+g2tEkebqYX17kyHiXXsMPzv2YqJkqkLBDBZbxDNRgFnQ3r5+6 5W0/tDfPiSuK4PXgKUFUqIOku5fDKbU0XYNixVEjlZ0AqmowsMdyIu4xoqfTv2Zl3b 5kEX2wCLfv1HsrUI6Gk9XedKPzY0vBY8Wz4cSrrYi14OpP4EqBZqfUQyPkUJlRumuV 58/3fz/fIE46A== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id D2F825FB5A; Mon, 22 Dec 2025 04:57:52 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Mon, 22 Dec 2025 04:56:28 -0700 Message-ID: <20251222115639.700578-25-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251222115639.700578-1-sjg@u-boot.org> References: <20251222115639.700578-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: CJUNX2HPG4MY32MHJEUGJKA4V3LUEHRH X-Message-ID-Hash: CJUNX2HPG4MY32MHJEUGJKA4V3LUEHRH 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: Simon Glass <simon.glass@canonical.com>, "Claude Opus 4 . 5" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 24/26] fs: ext4l: Mount filesystems read-only List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/CJUNX2HPG4MY32MHJEUGJKA4V3LUEHRH/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
fs: ext4l: Add support for mounting ext4 filesystems (part G)
|
|
Commit Message
Simon Glass
Dec. 22, 2025, 11:56 a.m. UTC
From: Simon Glass <simon.glass@canonical.com> Set sb_rdonly() to return 1 since U-Boot currently only supports read-only filesystem access. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- fs/ext4l/ext4_uboot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 8b70bbcb75c..5beedb4bb3d 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -289,8 +289,8 @@ extern struct user_namespace init_user_ns; /* might_sleep - stub */ #define might_sleep() do { } while (0) -/* sb_rdonly - stub */ -#define sb_rdonly(sb) (0) +/* sb_rdonly - for now U-Boot mounts filesystems read-only */ +#define sb_rdonly(sb) 1 /* Trace stubs */ #define trace_ext4_journal_start_inode(...) do { } while (0)