From patchwork Tue Dec 23 01:16:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1061 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=1766452608; bh=g2zOTJhWsEQV6qhHYe5JG1iaoR+MkR/PIFNXZAbSc9I=; 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=uZuA4Ln+jjJ84hzeQqMk7AMnkkdk+WJVxhOVs0Z4WyJ+EYxEaTlOwT4y8dkwfnIiA KDWdpGfQy+d6pFMla3o8RtiCUdFWJ+NHls2UE/N6H0d4uohPJIEh4Td+jxEEWHv548 lLcbgrjJO8dyFlqECDUjfWhaBpuisIFeoR69MeE1+l5Dc67vHNcLotLuaZ5ZvtmdKI 73cylqY/zcFBcbflAAHkTZYAm6hz+GGmCTv4Rvv3NrfxWUcdOgKJ/yrvUDuBCGbefS C2AV0J/RR7d3G7ewVTeDqVUkcsqMbGYCKavyLQEFnaNt06b8jtJkDMUElN34/33m4t JYS6igHem2hDg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B820564DAC for ; Mon, 22 Dec 2025 18:16:48 -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 lSMD3GA49cUD for ; Mon, 22 Dec 2025 18:16:48 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766452607; bh=g2zOTJhWsEQV6qhHYe5JG1iaoR+MkR/PIFNXZAbSc9I=; 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=dafl3454kLLF5rMV7FjwiH55ZV+NXWJH7Oq+xZSI1JwPFgWYgMabXbOyrsFZYe6NU UO6YnGTlmDJXvxq//z0McmFli5a7OtvOL6QeNHl+5YnKelMFnkBEPTcCRefy2q3cUQ CdPsKeL2scTsNkgLTghU5XrYIpSFvvYQi2K7x8j2QlMBriWlqHaawmOX+7Ch064cc9 83/9KWBE5unV9LA2UWNZDzrz+F2vslZIJE0bE5H89hWgEsEj4McgWCv+Z9eEgyFOyN z2hIZ/6y4p/87DMxBJfIwS5cpE3tKHLLN5ot4u1yeRiVd4JoEwCis/ThTUzaJPZeHZ Psq8MzWdiItuA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id E46C764DB4 for ; Mon, 22 Dec 2025 18:16:47 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766452606; bh=oR/2NKE7Xtt1H0P0ELs/G+MzVj3VMSi9IDRb0v0C5t0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hn1pVKn5gAYsK0+WX5ciI+Z6uUPKWBNiSQP+ixsQXzjWuBvCf3hg6BmW1MgDc0F7Q 2ForMF8bZpVsvROCQCR0C04hX4YXUaWHooGs9s8xA2XgQGpe6Updezv+fx8HPtpYT8 Q23fTJL0gtAn7+in1JCwQX22MtsnHxQpR6yZRyvBGyNESYFx6E2gGKU2CoOsKb6IZU mRQyOck2zS51LL/rCwBRWRQI8xm0kW8DIvIP1yWEhRJarRIl9epPnKr/3oApx2Xucb tkHtxOmOiB5+ddVc+KKnvTSjJ1xX2OU4WezK6LGpkRtXuRx1WLBnjYZkITunTPSuiP xcBJPdJ1Q9CBw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4950564DA7; Mon, 22 Dec 2025 18:16:46 -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 N4nUwlW1YMl7; Mon, 22 Dec 2025 18:16:46 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1766452605; bh=3GyaWxH2MHCjoPlHc7+csPhHbmHC86xgw1z3TpXRuaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jV9F78yswDN1xrQRqIVcvj7IAhVjDjHcX7wohUp0Wri8cMfOMLFWrp0XYjzkveENL ZG/04ucs2N0LMQqgO1UjZNIY0kK1JAjxi3gkfOfGrovwbuI/UZxijEFr3w23e2KOQO T3bng+q1sebHTY1I4ql5T37jQZxJbYwr2GRQ5Iy7TBDRTOa7S8Hp1//Ovk0vtzfPSy nZLpkONgdenvR1+zn1JU3X+Eig6JMHvCwKV3IajA4keff7dkX42G2i5AKM1VV3RgP3 nu9jqfronbvTYoqOMK0odrGax4VAslXV31HwYYJUkG2DLRI9E3g9Pj0VXjk+7ikXbT nateMGV7D+jXw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id A7BBE64DA9; Mon, 22 Dec 2025 18:16:45 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Mon, 22 Dec 2025 18:16:17 -0700 Message-ID: <20251223011632.380026-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251223011632.380026-1-sjg@u-boot.org> References: <20251223011632.380026-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 3YWWBKOR4ZPLKCSOWCTBSY3FLFVJRTYA X-Message-ID-Hash: 3YWWBKOR4ZPLKCSOWCTBSY3FLFVJRTYA 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 X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 02/12] fs: ext4l: Mount filesystems read-write 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 Change sb_rdonly() to return 0 to allow read-write mounting. This enables the filesystem to be mounted without the read-only restriction. Signed-off-by: Simon Glass --- 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 209f288f281..4dd03494586 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 - for now U-Boot mounts filesystems read-only */ -#define sb_rdonly(sb) 1 +/* sb_rdonly - U-Boot mounts filesystems read-write */ +#define sb_rdonly(sb) 0 /* Trace stubs */ #define trace_ext4_journal_start_inode(...) do { } while (0)