Basic Solution File System - BSFS
Loading...
Searching...
No Matches
dir_entry_t Struct Reference

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]

Detailed Description

Represents a directory entry in the BSFS file system.

Each directory entry maps a file or subdirectory name to its corresponding inode.

Member Data Documentation

◆ file_size

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.

◆ file_type

uint8_t dir_entry_t::file_type

Type of file (e.g., regular file, directory, symbolic link).

◆ filename

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.

◆ inode_number

uint32_t dir_entry_t::inode_number

Inode number associated with the file or subdirectory.

◆ name_hash

uint32_t dir_entry_t::name_hash

Hash value of the filename, used for indexing or fast lookup.


The documentation for this struct was generated from the following file: