Create test FAT32 image on build
Moved test files to test_files directory
Removed global array for test fat32
Part of #216
Removed hard coded test files
Use @embedFile for large file test
Updated docs
Closes#270
Update doc comment
Moved close to closeFile and closeDir in VFS
Moved back to @ptrCast()
Always forget to format
Added TODO comment
Added open implementation
Needed to return a pointer to the file system as `@fieldParentPtr(Fat32Self, "instance", fs.instance)` doesn't work as the the pointer to `instance` is on the stack, then goes out of scope when the init is returned. So will be using free stack space.
Part of #216
Spelling, doc comments and extra test for open file
init -> create, deinit -> destroy
This adds iterators to loop over the FAT cluster chain and loop over entries in the directory structure of FAT32.
The tests use hand crafted buffers for a FAT32 filesystem. These are too small for real FAT32 but will still demonstrate the same functionality as if there were real FAT32 buffers.
Added tests for EntryIterator init
Fixed memory leaks
Include code page 437
This is now moved to a better location
Fixed initrd doc for allocator
Added test files
Plus minor extras
Created initial FAT32 filesystem
This initial FAT32 filesystem will parse a stream, which could be a HDD or a in memory filesystem and produce a FAT32 filesystem. This will check if the raw bytes is a valid FAT32 filesystem as descibed in the spec.
This is only a skeleton with no open, read or write functionality.
Part of #216
logger -> log
Fmt
Removed 'zero_' from struct fields
number_free_cluster -> number_free_clusters
Return non allocated FAT32FS
prefix test_
Added doc comment for boot sector arrays
Moved code_page.zig
info -> debug for init FAT32
Abstracted getting code page table
Closes#244
Move PCI to arch
Plus spelling
Added new out and in functions
Added new out and in to mocking
Return pci devices as a list
Improved comment
Removed mask for the return
Removed type for OUT
Added new types
Instead of adding new types in 5 different places, this adds a generation tool that you add the type once and it will be populated in the framework for you.
This is defo one of those over engineered projects, but I had fun making it.
Replaces empty spaces with const
Refactor spaces
This will be used for testing the FAT32 driver for the kernel and will be integrated into the OS as a mkfs.fat32 program.
Plus typos
Fixed dependencies
Removed `fat32_` in options
Plus fixed doc comment
Removed the DefaultOrValue
Also reordered some stuff
Removed the serial time for more parameters
Moved writer() and seekableStream() to variables
Refactored mkFAT32