AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
super.c
Go to the documentation of this file.
1
4
5#include <ext2.h>
6
15{
16 return ext2_io(desc, 1, 1024, sizeof(struct ext2_superblock), desc->superblock);
17}
int ext2_io(struct ext2 *desc, int write, off_t off, size_t size, void *buf)
Reads or writes bytes of the filesystem's disk, all of them.
Definition block.c:19
int ext2_superblock_rewrite(struct ext2 *desc)
Writes the in-memory copy of the superblock back to the disk, after a change to its counts of free bl...
Definition super.c:14
The superblock, as it is on the disk, 1024 bytes into it.
Definition ext2.h:34
A mounted ext2 filesystem.
Definition ext2.h:168
struct ext2_superblock * superblock
Definition ext2.h:170