[Concept,02/12] fs: ext4l: Mount filesystems read-write

Message ID 20251223011632.380026-3-sjg@u-boot.org
State New
Headers
Series ext4l: Add support for listing directoties (Part H) |

Commit Message

Simon Glass Dec. 23, 2025, 1:16 a.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

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 <simon.glass@canonical.com>
---

 fs/ext4l/ext4_uboot.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

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)