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

Represents a contiguous span of blocks in the BSFS file system. More...

#include <filesystem_bsfs.h>

Public Attributes

uint32_t file_blk
uint32_t disk_blk
uint16_t length
uint16_t padding

Detailed Description

Represents a contiguous span of blocks in the BSFS file system.

This structure maps a logical file block index to a sequence of physical blocks on disk. It reduces metadata overhead by describing where file data is stored when multiple blocks are allocated consecutively.

Member Data Documentation

◆ disk_blk

uint32_t bspan_t::disk_blk

The physical block number on disk where this span begins.

◆ file_blk

uint32_t bspan_t::file_blk

The logical block index within the file. Indicates the position of this span in the file's logical address space.

◆ length

uint16_t bspan_t::length

The number of consecutive blocks starting from disk_blk.

◆ padding

uint16_t bspan_t::padding

Unused field for padding/alignment. Ensures 12-byte total size.


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