Added dir navigation without needing parent entries

This should be the last step to removing the need for
parent entries.

Parent entries cause all sort of problems with atomic
directory updates, especially related to moving/deleting
directories.

I couldn't figure out a parser for '..' entries without,
O(n^2) runtime, a stack, or modifying the path itself.
Since the goal is constant memory consumption, I went
with the O(n^2) runtime solution, but this may need to
be optimized later.
This commit is contained in:
Christopher Haster
2017-04-14 18:27:06 -05:00
parent c25c893219
commit 1f13006e36
2 changed files with 42 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ size: $(OBJ)
$(SIZE) -t $^
.SUFFIXES:
test: test_format test_dirs test_files test_alloc test_orphan
test: test_format test_dirs test_files test_alloc test_orphan test_paths
test_%: tests/test_%.sh
./$<