<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pub/users/cem/toxicos.git/src/include/fs, branch master</title>
<subtitle>[no description]</subtitle>
<link rel='alternate' type='text/html' href='http://toxiclabs.cc/cgit.cgi/pub/users/cem/toxicos.git/'/>
<entry>
<title>Add a path parsing mechanism</title>
<updated>2026-03-08T12:47:28+00:00</updated>
<author>
<name>Carlos Maiolino</name>
<email>cem@toxiclabs.cc</email>
</author>
<published>2026-03-08T12:37:37+00:00</published>
<link rel='alternate' type='text/html' href='http://toxiclabs.cc/cgit.cgi/pub/users/cem/toxicos.git/commit/?id=84b464a185d20d8e329b7aad0b482687a9705b58'/>
<id>84b464a185d20d8e329b7aad0b482687a9705b58</id>
<content type='text'>
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-&gt;next, where the
last path component will have -&gt;next == NULL.

This also introduces path_root struct, which represents the root of
the path.

The first component, linked to path_root-&gt;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 &lt;cem@toxiclabs.cc&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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-&gt;next, where the
last path component will have -&gt;next == NULL.

This also introduces path_root struct, which represents the root of
the path.

The first component, linked to path_root-&gt;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 &lt;cem@toxiclabs.cc&gt;
</pre>
</div>
</content>
</entry>
</feed>
