From d53735fc21f6210995ced14c1621108d78ffa271 Mon Sep 17 00:00:00 2001 From: Yifan Wu Date: Sat, 14 Oct 2023 00:34:50 +0800 Subject: [PATCH] Expand user-img size from 16MiB to 32MiB --- easy-fs-fuse/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easy-fs-fuse/src/main.rs b/easy-fs-fuse/src/main.rs index bb9ff761..dceec15f 100644 --- a/easy-fs-fuse/src/main.rs +++ b/easy-fs-fuse/src/main.rs @@ -59,11 +59,11 @@ fn easy_fs_pack() -> std::io::Result<()> { .write(true) .create(true) .open(format!("{}{}", target_path, "fs.img"))?; - f.set_len(16 * 2048 * 512).unwrap(); + f.set_len(32 * 2048 * 512).unwrap(); f }))); - // 16MiB, at most 4095 files - let efs = EasyFileSystem::create(block_file, 16 * 2048, 1); + // 32MiB, at most 4095 files + let efs = EasyFileSystem::create(block_file, 32 * 2048, 1); let root_inode = Arc::new(EasyFileSystem::root_inode(&efs)); let apps: Vec<_> = read_dir(src_path) .unwrap()