[PATCH v2 1/2] befs: Allow file sizes beyond 2GiB
From: Axel Dörfler
Date: Mon Nov 02 2026 - 09:36:19 EST
This just enables LFS support in the VFS. The implementation already
supports large files.
Signed-off-by: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
---
Notes:
v2:
- Rebased onto v7.3; sb_set_blocksize() is now checked for failure, so
the assignment moved below the new error path.
fs/befs/linuxvfs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index ee0cbae521b9..f715dd71a38c 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -862,6 +862,7 @@ befs_fill_super(struct super_block *sb, struct fs_context *fc)
/* Set real blocksize of fs */
if (!sb_set_blocksize(sb, (ulong) befs_sb->block_size))
goto unacquire_priv_sbp;
+ sb->s_maxbytes = MAX_LFS_FILESIZE;
sb->s_op = &befs_sops;
sb->s_export_op = &befs_export_operations;
sb->s_time_min = 0;
--
2.56.0