|
Basic Solution File System - BSFS
|
Implementation of superblock manipulation functions in the BSFS file system. More...
Functions | |
| int | write_superblock (FILE *disk, const superblock_t *sb) |
| Writes the superblock to block 0 of the filesystem. | |
| int | read_superblock (FILE *disk, superblock_t *sb) |
| Reads the superblock from block 0 of the filesystem. | |
Implementation of superblock manipulation functions in the BSFS file system.
This file contains routines to read and write the superblock, which is located at block 0 of the filesystem and stores essential metadata required to mount and navigate the file system.
| int read_superblock | ( | FILE * | disk, |
| superblock_t * | sb ) |
Reads the superblock from block 0 of the filesystem.
| disk | Pointer to the open filesystem image (disk). |
| sb | Pointer to the superblock structure to populate. |
| int write_superblock | ( | FILE * | disk, |
| const superblock_t * | sb ) |
Writes the superblock to block 0 of the filesystem.
| disk | Pointer to the open filesystem image (disk). |
| sb | Pointer to the superblock structure to write. |