Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ int createDir(const char *path) {
}

/* 为子目录内容分配块(默认 2 块 = 128 字节 = 2 条目) */
int subBlocks = 2;
int subBlocks = 16;
int subStart = allocBlocks(subBlocks);
if (subStart < 0) {
logWrite(ERR, "createDir: failed to allocate %d blocks for dir", subBlocks);
Expand Down
3 changes: 3 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ int main(void) {
shellRegister("mkfile", doMkfile,
UNDERLINE "mkfile <path> <size>\n" COLOR_RESET
"Create a file with given size");
shellRegister("touch", doMkfile,
UNDERLINE "touch <path> <size>\n" COLOR_RESET
"Create a file with given size");
shellRegister("mkdir", doMkdir,
UNDERLINE "mkdir <path>\n" COLOR_RESET "Create a subdirectory");
shellRegister("rm", doRm,
Expand Down
Loading