AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
super.c File Reference

ext2: writing the superblock back to the disk. More...

#include <ext2.h>

Go to the source code of this file.

Functions

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 blocks and inodes.

Detailed Description

ext2: writing the superblock back to the disk.

Definition in file super.c.

Function Documentation

◆ ext2_superblock_rewrite()

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 blocks and inodes.

Parameters
descthe mounted filesystem
Returns
0, or a negative errno if the write failed

Definition at line 14 of file super.c.

References ext2_io(), ext2_superblock_rewrite(), and ext2::superblock.

Referenced by ext2_block_alloc(), ext2_block_free(), ext2_inode_alloc(), ext2_inode_free(), and ext2_superblock_rewrite().