Basic Solution File System - BSFS
Loading...
Searching...
No Matches
superblock_t Struct Reference

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

Detailed Description

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.

Member Data Documentation

◆ block_bitmap_start

uint32_t superblock_t::block_bitmap_start

Block number where the bitmap structure begins. The bitmap tracks which blocks are free or used.

◆ block_bitmap_total

uint32_t superblock_t::block_bitmap_total

Total number of blocks used to store the bitmap.

◆ block_size

uint32_t superblock_t::block_size

The size (in bytes) of each block in the file system.

◆ data_block_start

uint32_t superblock_t::data_block_start

Block number where the actual data region begins (i.e., where file contents are stored).

◆ fs_size

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.

◆ inode_root

uint32_t superblock_t::inode_root

Block number of the root node of the B-tree that stores inode entries.

◆ magic_number

uint32_t superblock_t::magic_number

A constant used to validate the file system type (e.g., 0xB5F5).

◆ recovery_root

uint32_t superblock_t::recovery_root

Block number of the root node of the B-tree used for recovery records.

◆ root_inode

uint32_t superblock_t::root_inode

The inode number of the root directory of the file system.

◆ total_blocks

uint32_t superblock_t::total_blocks

The total number of blocks available in the file system.


The documentation for this struct was generated from the following file: