Skip to content

Commit

Permalink
Expand user-img size from 16MiB to 32MiB
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfcyx committed Oct 13, 2023
1 parent 76accdf commit 5182526
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions easy-fs-fuse/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5182526

Please sign in to comment.