WBFS Format Specifications (Under Development)
info taken from libwbfs/libwbfs.h
typedef struct wbfs_head
{
be32_t magic;
// parameters copied in the partition for easy dumping, and bug reports
be32_t n_hd_sec; // total number of hd_sec in this partition
u8 hd_sec_sz_s; // sector size in this partition
u8 wbfs_sec_sz_s; // size of a wbfs sec
u8 padding3[2];
u8 disc_table[0]; // size depends on hd sector size
}__attribute((packed)) wbfs_head_t ;
WBFS first wbfs_sector structure:
-----------
| wbfs_head | (hd_sec_sz)
-----------
| |
| disc_info |
| |
-----------
| |
| disc_info |
| |
-----------
| |
| ... |
| |
-----------
| |
| disc_info |
| |
-----------
| |
|freeblk_tbl|
| |
-----------