Go to file
Christopher Haster 8a674524fc Added full dir list and rudimentary block allocator
In writing the initial allocator, I ran into the rather
difficult problem of trying to iterate through the entire
filesystem cheaply and with only constant memory consumption
(which prohibits recursive functions).

The solution was to simply thread all directory blocks onto a
massive linked-list that spans the entire filesystem.

With the linked-list it was easy to create a traverse function
for all blocks in use on the filesystem (which has potential
for other utility), and add the rudimentary block allocator
using a bit-vector.

While the linked-list may add complexity (especially where
needing to maintain atomic operations), the linked-list helps
simplify what is currently the most expensive operation in
the filesystem, with no cost to space (the linked-list can
reuse the pointers used for chained directory blocks).
2017-04-18 01:44:01 -05:00
emubd Added file read/write tests and some framework updates 2017-03-25 19:23:30 -05:00
tests Added full dir list and rudimentary block allocator 2017-04-18 01:44:01 -05:00
.travis.yml Added travis config 2017-03-25 19:23:30 -05:00
lfs_bd.h Restructured the major interfaces of the filesystem 2017-03-25 19:23:26 -05:00
lfs_config.h Added full dir list and rudimentary block allocator 2017-04-18 01:44:01 -05:00
lfs_util.c Restructured the major interfaces of the filesystem 2017-03-25 19:23:26 -05:00
lfs_util.h Restructured the major interfaces of the filesystem 2017-03-25 19:23:26 -05:00
lfs.c Added full dir list and rudimentary block allocator 2017-04-18 01:44:01 -05:00
lfs.h Added full dir list and rudimentary block allocator 2017-04-18 01:44:01 -05:00
Makefile Added full dir list and rudimentary block allocator 2017-04-18 01:44:01 -05:00