User base from 0x0->0x10000; user image size limit from 128MB->16MB; trigger race condition on k210

This commit is contained in:
Yifan Wu 2021-10-03 07:36:41 -07:00
parent a341b338c8
commit ff5055386b
5 changed files with 18 additions and 14 deletions

View file

@ -56,13 +56,13 @@ fn easy_fs_pack() -> std::io::Result<()> {
.write(true)
.create(true)
.open(format!("{}{}", target_path, "fs.img"))?;
f.set_len(128 * 2048 * 512).unwrap();
f.set_len(16 * 2048 * 512).unwrap();
f
})));
// 128MiB, at most 4095 files
// 16MiB, at most 4095 files
let efs = EasyFileSystem::create(
block_file.clone(),
128 * 2048,
16 * 2048,
1,
);
let root_inode = Arc::new(EasyFileSystem::root_inode(&efs));