Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure superblock size always SIMPLEFS_BLOCK_SIZE
In current implementation, the struct superblock used padding via subtraction to match the SIMPLEFS_BLOCK_SIZE, which could lead to the need for recalculating the padding when the data structure changed. This commit uses union to set struct superblock size and uses assert macro to check the size.
- Loading branch information