|
Basic Solution File System - BSFS
|
Represents a directory entry in the BSFS file system. More...
#include <filesystem_bsfs.h>
Public Attributes | |
| uint32_t | inode_number |
| uint8_t | file_type |
| uint8_t | file_size |
| uint32_t | name_hash |
| char | filename [MAX_FILENAME] |
Represents a directory entry in the BSFS file system.
Each directory entry maps a file or subdirectory name to its corresponding inode.
| uint8_t dir_entry_t::file_size |
Size of the file in bytes (as last known when directory was written). Used to optimize operations like ls without reading full inode.
| uint8_t dir_entry_t::file_type |
Type of file (e.g., regular file, directory, symbolic link).
| char dir_entry_t::filename[MAX_FILENAME] |
Null-terminated character array storing the name of the file or directory. The maximum length is defined by MAX_FILENAME.
| uint32_t dir_entry_t::inode_number |
Inode number associated with the file or subdirectory.
| uint32_t dir_entry_t::name_hash |
Hash value of the filename, used for indexing or fast lookup.