|
Basic Solution File System - BSFS
|
Represents the superblock of the BSFS file system. More...
#include <filesystem_bsfs.h>
Public Attributes | |
| uint32_t | magic_number |
| uint32_t | block_size |
| uint64_t | fs_size |
| uint32_t | total_blocks |
| uint32_t | block_bitmap_start |
| uint32_t | block_bitmap_total |
| uint32_t | inode_root |
| uint32_t | recovery_root |
| uint32_t | data_block_start |
| uint32_t | root_inode |
Represents the superblock of the BSFS file system.
The superblock is a fundamental structure in the BSFS file system. It stores metadata about the layout and configuration of the file system and is typically located at a fixed position on disk.
| uint32_t superblock_t::block_bitmap_start |
Block number where the bitmap structure begins. The bitmap tracks which blocks are free or used.
| uint32_t superblock_t::block_bitmap_total |
Total number of blocks used to store the bitmap.
| uint32_t superblock_t::block_size |
The size (in bytes) of each block in the file system.
| uint32_t superblock_t::data_block_start |
Block number where the actual data region begins (i.e., where file contents are stored).
| uint64_t superblock_t::fs_size |
Total size (in bytes) of the file system image or device.
64-bit to support large devices/images beyond 4 GiB.
| uint32_t superblock_t::inode_root |
Block number of the root node of the B-tree that stores inode entries.
| uint32_t superblock_t::magic_number |
A constant used to validate the file system type (e.g., 0xB5F5).
| uint32_t superblock_t::recovery_root |
Block number of the root node of the B-tree used for recovery records.
| uint32_t superblock_t::root_inode |
The inode number of the root directory of the file system.
| uint32_t superblock_t::total_blocks |
The total number of blocks available in the file system.