From c611248f800e946acf44d64b218aeb8fc6751640 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Fri, 29 Mar 2019 13:57:04 +0800 Subject: [PATCH] Fix building for 32bit systems --- rcore-fs-sfs/src/structs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rcore-fs-sfs/src/structs.rs b/rcore-fs-sfs/src/structs.rs index 4fa9bc0..c86cb8e 100644 --- a/rcore-fs-sfs/src/structs.rs +++ b/rcore-fs-sfs/src/structs.rs @@ -189,7 +189,8 @@ pub const MAX_INFO_LEN: usize = 31; /// max length of filename pub const MAX_FNAME_LEN: usize = 255; /// max file size in theory (48KB + 4MB + 4GB) -pub const MAX_FILE_SIZE: usize = 48 * 1024 + 4 * 1024 * 1024 + 4 * 1024 * 1024 * 1024; +/// however, the file size is stored in u32 +pub const MAX_FILE_SIZE: usize = 0xffffffff; /// block the superblock lives in pub const BLKN_SUPER: BlockId = 0; /// location of the root dir inode