AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
ext2_superblock Struct Reference

The superblock, as it is on the disk, 1024 bytes into it. More...

#include <ext2.h>

Data Fields

uint32_t ninodes
 number of inodes
uint32_t nblocks
 number of blocks
uint32_t nrblocks
 number of reserved blocks
uint32_t free_blocks
 number of unallocated blocks
uint32_t free_inodes
 number of unallocated inodes
uint32_t dblock
 first data block
uint32_t block_size
 log(block size)
uint32_t frag_size
 log(fragment size)
uint32_t gblocks
 number of blocks per block group
uint32_t gfrags
 number of fragments per block group
uint32_t ginodes
 number of inodes per block group
uint32_t mtime
 last mount time
uint32_t wtime
 last write time
uint16_t times_mounted
uint16_t allowed_times_mounted
uint16_t ext2_signature
uint16_t filesystem_state
uint16_t on_error
uint16_t minor_version
uint32_t last_fsck
uint32_t time_between_fsck
uint32_t os_id
uint32_t major_version
uint16_t uid
uint16_t gid
uint32_t first_non_reserved_inode
uint16_t inode_size
uint16_t sb_block_group
uint32_t feature_compat
uint32_t feature_incompat
uint32_t feature_ro_compat
uint8_t fsid [16]
uint8_t name [16]
uint8_t path_last_mounted_to [64]
uint32_t compression_algorithms
uint8_t blocks_to_preallocate_for_files
uint8_t blocks_to_preallocate_for_directories
uint16_t __unused__
uint8_t jid [16]
uint32_t jinode
uint32_t jdevice
uint32_t head_of_orphan_inode_list

Detailed Description

The superblock, as it is on the disk, 1024 bytes into it.

Definition at line 34 of file ext2.h.

Field Documentation

◆ __unused__

uint16_t ext2_superblock::__unused__

Definition at line 90 of file ext2.h.

◆ allowed_times_mounted

uint16_t ext2_superblock::allowed_times_mounted

Definition at line 63 of file ext2.h.

◆ block_size

uint32_t ext2_superblock::block_size

log(block size)

Definition at line 48 of file ext2.h.

Referenced by ext2_load().

◆ blocks_to_preallocate_for_directories

uint8_t ext2_superblock::blocks_to_preallocate_for_directories

Definition at line 89 of file ext2.h.

◆ blocks_to_preallocate_for_files

uint8_t ext2_superblock::blocks_to_preallocate_for_files

Definition at line 88 of file ext2.h.

◆ compression_algorithms

uint32_t ext2_superblock::compression_algorithms

Definition at line 87 of file ext2.h.

◆ dblock

uint32_t ext2_superblock::dblock

first data block

Definition at line 46 of file ext2.h.

Referenced by ext2_block_alloc(), and ext2_block_free().

◆ ext2_signature

uint16_t ext2_superblock::ext2_signature

Definition at line 64 of file ext2.h.

Referenced by ext2_load().

◆ feature_compat

uint32_t ext2_superblock::feature_compat

Definition at line 80 of file ext2.h.

◆ feature_incompat

uint32_t ext2_superblock::feature_incompat

Definition at line 81 of file ext2.h.

Referenced by ext2_load().

◆ feature_ro_compat

uint32_t ext2_superblock::feature_ro_compat

Definition at line 82 of file ext2.h.

Referenced by ext2_load().

◆ filesystem_state

uint16_t ext2_superblock::filesystem_state

Definition at line 65 of file ext2.h.

◆ first_non_reserved_inode

uint32_t ext2_superblock::first_non_reserved_inode

Definition at line 76 of file ext2.h.

◆ frag_size

uint32_t ext2_superblock::frag_size

log(fragment size)

Definition at line 50 of file ext2.h.

◆ free_blocks

uint32_t ext2_superblock::free_blocks

number of unallocated blocks

Definition at line 42 of file ext2.h.

Referenced by ext2_block_alloc(), and ext2_block_free().

◆ free_inodes

uint32_t ext2_superblock::free_inodes

number of unallocated inodes

Definition at line 44 of file ext2.h.

Referenced by ext2_inode_alloc(), and ext2_inode_free().

◆ fsid

uint8_t ext2_superblock::fsid[16]

Definition at line 84 of file ext2.h.

◆ gblocks

uint32_t ext2_superblock::gblocks

number of blocks per block group

Definition at line 52 of file ext2.h.

Referenced by ext2_block_alloc(), ext2_block_free(), and ext2_load().

◆ gfrags

uint32_t ext2_superblock::gfrags

number of fragments per block group

Definition at line 54 of file ext2.h.

◆ gid

uint16_t ext2_superblock::gid

Definition at line 73 of file ext2.h.

◆ ginodes

uint32_t ext2_superblock::ginodes

number of inodes per block group

Definition at line 56 of file ext2.h.

Referenced by ext2_inode_alloc(), ext2_inode_free(), ext2_inode_off(), and ext2_vmknod().

◆ head_of_orphan_inode_list

uint32_t ext2_superblock::head_of_orphan_inode_list

Definition at line 94 of file ext2.h.

◆ inode_size

uint16_t ext2_superblock::inode_size

Definition at line 77 of file ext2.h.

Referenced by ext2_load().

◆ jdevice

uint32_t ext2_superblock::jdevice

Definition at line 93 of file ext2.h.

◆ jid

uint8_t ext2_superblock::jid[16]

Definition at line 91 of file ext2.h.

◆ jinode

uint32_t ext2_superblock::jinode

Definition at line 92 of file ext2.h.

◆ last_fsck

uint32_t ext2_superblock::last_fsck

Definition at line 68 of file ext2.h.

◆ major_version

uint32_t ext2_superblock::major_version

Definition at line 71 of file ext2.h.

Referenced by ext2_load().

◆ minor_version

uint16_t ext2_superblock::minor_version

Definition at line 67 of file ext2.h.

◆ mtime

uint32_t ext2_superblock::mtime

last mount time

Definition at line 58 of file ext2.h.

◆ name

uint8_t ext2_superblock::name[16]

Definition at line 85 of file ext2.h.

◆ nblocks

uint32_t ext2_superblock::nblocks

number of blocks

Definition at line 38 of file ext2.h.

Referenced by ext2_block_free(), and ext2_load().

◆ ninodes

uint32_t ext2_superblock::ninodes

number of inodes

Definition at line 36 of file ext2.h.

Referenced by ext2_inode_off().

◆ nrblocks

uint32_t ext2_superblock::nrblocks

number of reserved blocks

Definition at line 40 of file ext2.h.

◆ on_error

uint16_t ext2_superblock::on_error

Definition at line 66 of file ext2.h.

◆ os_id

uint32_t ext2_superblock::os_id

Definition at line 70 of file ext2.h.

◆ path_last_mounted_to

uint8_t ext2_superblock::path_last_mounted_to[64]

Definition at line 86 of file ext2.h.

◆ sb_block_group

uint16_t ext2_superblock::sb_block_group

Definition at line 78 of file ext2.h.

◆ time_between_fsck

uint32_t ext2_superblock::time_between_fsck

Definition at line 69 of file ext2.h.

◆ times_mounted

uint16_t ext2_superblock::times_mounted

Definition at line 62 of file ext2.h.

◆ uid

uint16_t ext2_superblock::uid

Definition at line 72 of file ext2.h.

◆ wtime

uint32_t ext2_superblock::wtime

last write time

Definition at line 60 of file ext2.h.


The documentation for this struct was generated from the following file: