Skip to content

Commit 3b9d663

Browse files
committed
Restructured directory code
After quite a bit of prototyping, settled on the following functions: - lfs_dir_alloc - create a new dir - lfs_dir_fetch - load and check a dir pair from disk - lfs_dir_commit - save a dir pair to disk - lfs_dir_shift - shrink a dir pair to disk - lfs_dir_append - add a dir entry, creating dirs if needed - lfs_dir_remove - remove a dir entry, dropping dirs if needed Additionally, followed through with a few other tweaks
1 parent bd817ab commit 3b9d663

File tree

6 files changed

+370
-527
lines changed

6 files changed

+370
-527
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ size: $(OBJ)
3131
$(SIZE) -t $^
3232

3333
.SUFFIXES:
34-
test: test_format test_dirs test_files test_alloc test_orphan test_paths
34+
test: test_format test_dirs test_files test_alloc test_paths test_orphan
3535
test_%: tests/test_%.sh
3636
./$<
3737

0 commit comments

Comments
 (0)