diff options
| author | Carlos Maiolino <[email protected]> | 2026-03-08 13:37:37 +0100 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2026-03-08 13:47:28 +0100 |
| commit | 84b464a185d20d8e329b7aad0b482687a9705b58 (patch) | |
| tree | 273954db9a38ca577a1bb8171f2f31a9ddbce54b /src/block/block.c | |
| parent | 5ba10e3ee774602e20553091568551e210731fbb (diff) | |
Add a path parsing mechanism
Now the system can parse paths to files/directories.
It follows the same Unix standard namespace.
For now, only absolute paths are allowed.
The parse mechanism relies on the struct path_part. Which represents
each component on a single path.
All the components are chain-linked through path_part->next, where the
last path component will have ->next == NULL.
This also introduces path_root struct, which represents the root of
the path.
The first component, linked to path_root->head, is always the "/" component.
The disk_id represents the disk the root directory is found into. This
should actually (and likely will) be a mountpoint not a disk id.
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src/block/block.c')
0 files changed, 0 insertions, 0 deletions
