WKern
|
Go to the source code of this file.
Functions | |
u32 | Fat16TotalClusters (struct FaT16Info *fat) |
Calculate the total number of data clusters in a FAT16 filesystem. | |
u32 | Fat16Mount (u32 partition_lba) |
Mounts the FAT16 filesystem from a given partition LBA. |
Variables | |
struct FaT16Info | fat16 |
Holds FAT16 filesystem info and a sector buffer. |
Mounts the FAT16 filesystem from a given partition LBA.
Mounts FAT16 partition and reads filesystem info.
Reads the boot sector, validates the FAT16 signature, and initializes the FAT16 info struct with important filesystem layout details.
partition_lba | Logical block address of the FAT16 partition. |
Prints mount status and key filesystem layout info via Kprintf.
Definition at line 67 of file fat16_mnt.c.
Calculate the total number of data clusters in a FAT16 filesystem.
fat | Pointer to a FaT16Info struct representing the FAT16 filesystem. |
This calculates clusters by subtracting reserved, FAT, and root directory sectors from the total sectors and dividing by sectors per cluster.
Definition at line 37 of file fat16_mnt.c.
struct FaT16Info fat16 |
Holds FAT16 filesystem info and a sector buffer.
Global FAT16 filesystem info struct.
Definition at line 25 of file fat16_mnt.c.