Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAT: minor improvements #129

Merged
merged 2 commits into from
Oct 9, 2024
Merged
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
42 changes: 21 additions & 21 deletions components/fs/fat/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,27 @@ typedef struct FS_request{
} fs_request;

// This operations list must be consistent with the file system protocol enum
void (*operation_functions[])() = {
fat_mount,
fat_unmount,
fat_open,
fat_close,
fat_stat,
fat_pread,
fat_pwrite,
fat_fsize,
fat_rename,
fat_unlink,
fat_truncate,
fat_mkdir,
fat_rmdir,
fat_opendir,
fat_closedir,
fat_sync,
fat_readdir,
fat_seekdir,
fat_telldir,
fat_rewinddir,
void (*operation_functions[])(void) = {
[FS_CMD_INITIALISE] = fat_mount,
[FS_CMD_DEINITIALISE] = fat_unmount,
[FS_CMD_OPEN] = fat_open,
[FS_CMD_CLOSE] = fat_close,
[FS_CMD_STAT] = fat_stat,
[FS_CMD_READ] = fat_pread,
[FS_CMD_WRITE] = fat_pwrite,
[FS_CMD_FSIZE] = fat_fsize,
[FS_CMD_RENAME] = fat_rename,
[FS_CMD_UNLINK] = fat_unlink,
[FS_CMD_TRUNCATE] = fat_truncate,
[FS_CMD_MKDIR] = fat_mkdir,
[FS_CMD_RMDIR] = fat_rmdir,
[FS_CMD_OPENDIR] = fat_opendir,
[FS_CMD_CLOSEDIR] = fat_closedir,
[FS_CMD_FSYNC] = fat_sync,
[FS_CMD_READDIR] = fat_readdir,
[FS_CMD_SEEKDIR] = fat_seekdir,
[FS_CMD_TELLDIR] = fat_telldir,
[FS_CMD_REWINDDIR] = fat_rewinddir,
};

static fs_request request_pool[FAT_THREAD_NUM];
Expand Down