mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-22 09:26:26 +04:00
Expand user-img size from 16MiB to 32MiB
This commit is contained in:
parent
76accdf04e
commit
518252623d
@ -59,11 +59,11 @@ fn easy_fs_pack() -> std::io::Result<()> {
|
|||||||
.write(true)
|
.write(true)
|
||||||
.create(true)
|
.create(true)
|
||||||
.open(format!("{}{}", target_path, "fs.img"))?;
|
.open(format!("{}{}", target_path, "fs.img"))?;
|
||||||
f.set_len(16 * 2048 * 512).unwrap();
|
f.set_len(32 * 2048 * 512).unwrap();
|
||||||
f
|
f
|
||||||
})));
|
})));
|
||||||
// 16MiB, at most 4095 files
|
// 32MiB, at most 4095 files
|
||||||
let efs = EasyFileSystem::create(block_file, 16 * 2048, 1);
|
let efs = EasyFileSystem::create(block_file, 32 * 2048, 1);
|
||||||
let root_inode = Arc::new(EasyFileSystem::root_inode(&efs));
|
let root_inode = Arc::new(EasyFileSystem::root_inode(&efs));
|
||||||
let apps: Vec<_> = read_dir(src_path)
|
let apps: Vec<_> = read_dir(src_path)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user