#include <xfs_format.hpp>
Public Member Functions | |
| unsigned | format_version () const |
| bool | is_v5 () const |
| bool | is_v4 () const |
| bool | has_crc () const |
| bool | has_ftype () const |
| uint64_t | volume_size_bytes () const |
| std::string | label () const |
Public Attributes | |
| uint32_t | magicnum {0} |
| uint32_t | blocksize {0} |
| uint64_t | dblocks {0} |
| uint64_t | rblocks {0} |
| uint64_t | rextents {0} |
| std::array< uint8_t, 16 > | uuid {} |
| uint64_t | logstart {0} |
| uint64_t | rootino {0} |
| uint64_t | rbmino {0} |
| uint64_t | rsumino {0} |
| uint32_t | rextsize {0} |
| uint32_t | agblocks {0} |
| uint32_t | agcount {0} |
| uint32_t | rbmblocks {0} |
| uint32_t | logblocks {0} |
| uint16_t | versionnum {0} |
| uint16_t | sectsize {0} |
| uint16_t | inodesize {0} |
| uint16_t | inopblock {0} |
| std::array< char, 12 > | fname {} |
| uint8_t | blocklog {0} |
| uint8_t | sectlog {0} |
| uint8_t | inodelog {0} |
| uint8_t | inopblog {0} |
| uint8_t | agblklog {0} |
| uint8_t | rextslog {0} |
| uint8_t | inprogress {0} |
| uint8_t | imax_pct {0} |
| uint64_t | icount {0} |
| uint64_t | ifree {0} |
| uint64_t | fdblocks {0} |
| uint64_t | frextents {0} |
| uint64_t | uquotino {0} |
| uint64_t | gquotino {0} |
| uint16_t | qflags {0} |
| uint8_t | flags {0} |
| uint8_t | shared_vn {0} |
| uint32_t | inoalignmt {0} |
| uint32_t | unit {0} |
| uint32_t | width {0} |
| uint8_t | dirblklog {0} |
| uint8_t | logsectlog {0} |
| uint16_t | logsectsize {0} |
| uint32_t | logsunit {0} |
| uint32_t | features2 {0} |
| uint32_t | bad_features2 {0} |
| uint32_t | features_compat {0} |
| uint32_t | features_ro_compat {0} |
| uint32_t | features_incompat {0} |
| uint32_t | features_log_incompat {0} |
| uint32_t | crc {0} |
| uint32_t | spino_align {0} |
| uint64_t | pquotino {0} |
| uint64_t | lsn {0} |
| std::array< uint8_t, 16 > | meta_uuid {} |
Definition at line 132 of file xfs_format.hpp.
|
inline |
Definition at line 193 of file xfs_format.hpp.
References versionnum, and xfs::XFS_SB_VERSION_NUMBITS.
Referenced by is_v4(), is_v5(), xfs::parse_superblock(), XfsRecovery::recover(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
|
inline |
|
inline |
Definition at line 197 of file xfs_format.hpp.
References features2, features_incompat, is_v5(), and xfs::XFS_SB_FEAT_INCOMPAT_FTYPE.
Referenced by XfsRecovery::recover(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
|
inline |
Definition at line 195 of file xfs_format.hpp.
References format_version(), and xfs::XFS_SB_VERSION_4.
|
inline |
Definition at line 194 of file xfs_format.hpp.
References format_version(), and xfs::XFS_SB_VERSION_5.
Referenced by anonymous_namespace{xfs_recovery.cpp}::collect_dir_entries_block_or_leaf(), anonymous_namespace{xfs_recovery.cpp}::collect_extents(), has_crc(), has_ftype(), anonymous_namespace{xfs_recovery.cpp}::load_ag_headers(), XfsRecovery::recover(), xfs::walk_all_free_inode_records(), xfs::walk_free_inode_btree(), xfs::anonymous_namespace{xfs_btree.cpp}::walk_ibt_block(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
|
inline |
Definition at line 204 of file xfs_format.hpp.
References fname.
Referenced by XfsRecovery::recover(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
|
inline |
Definition at line 203 of file xfs_format.hpp.
References blocksize, and dblocks.
Referenced by XfsRecovery::recover(), anonymous_namespace{xfs_recovery.cpp}::validate_geometry(), anonymous_namespace{filesystem_probes.cpp}::xfs_probe(), and anonymous_namespace{lost_partition_finder.cpp}::xfs_size_bytes().
| uint8_t xfs::Superblock::agblklog {0} |
Definition at line 158 of file xfs_format.hpp.
Referenced by xfs::crack_inode(), xfs::expand_chunk(), xfs::expand_chunk_free(), xfs::anonymous_namespace{xfs_btree.cpp}::fsb_to_byte_offset_local(), xfs::fsb_to_disk_offset(), and xfs::parse_superblock().
| uint32_t xfs::Superblock::agblocks {0} |
Definition at line 145 of file xfs_format.hpp.
Referenced by xfs::anonymous_namespace{xfs_btree.cpp}::ag_block_to_disk_offset(), xfs::anonymous_namespace{xfs_btree.cpp}::fsb_to_byte_offset_local(), xfs::fsb_to_disk_offset(), anonymous_namespace{xfs_recovery.cpp}::load_ag_headers(), xfs::parse_superblock(), anonymous_namespace{xfs_recovery.cpp}::read_dinode(), XfsRecovery::recover(), xfs::anonymous_namespace{xfs_btree.cpp}::walk_ibt_block(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
| uint32_t xfs::Superblock::agcount {0} |
Definition at line 146 of file xfs_format.hpp.
Referenced by xfs::parse_superblock(), anonymous_namespace{xfs_recovery.cpp}::read_dinode(), XfsRecovery::recover(), xfs::walk_all_free_inode_records(), xfs::walk_all_inode_records(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
| uint32_t xfs::Superblock::bad_features2 {0} |
Definition at line 181 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint8_t xfs::Superblock::blocklog {0} |
Definition at line 154 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::blocksize {0} |
Definition at line 135 of file xfs_format.hpp.
Referenced by xfs::anonymous_namespace{xfs_btree.cpp}::ag_block_to_disk_offset(), anonymous_namespace{xfs_recovery.cpp}::collect_dir_entries_block_or_leaf(), xfs::anonymous_namespace{xfs_btree.cpp}::fsb_to_byte_offset_local(), xfs::fsb_to_disk_offset(), anonymous_namespace{xfs_recovery.cpp}::load_ag_headers(), xfs::parse_superblock(), anonymous_namespace{xfs_recovery.cpp}::read_dinode(), anonymous_namespace{xfs_recovery.cpp}::read_extents_data(), XfsRecovery::recover(), volume_size_bytes(), xfs::anonymous_namespace{xfs_btree.cpp}::walk_bmbt_block(), xfs::anonymous_namespace{xfs_btree.cpp}::walk_ibt_block(), anonymous_namespace{xfs_recovery.cpp}::write_extents_to_path(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
| uint32_t xfs::Superblock::crc {0} |
Definition at line 186 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::dblocks {0} |
Definition at line 136 of file xfs_format.hpp.
Referenced by xfs::parse_superblock(), XfsRecovery::recover(), volume_size_bytes(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
| uint8_t xfs::Superblock::dirblklog {0} |
Definition at line 174 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::fdblocks {0} |
Definition at line 164 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::features2 {0} |
Definition at line 178 of file xfs_format.hpp.
Referenced by has_ftype(), and xfs::parse_superblock().
| uint32_t xfs::Superblock::features_compat {0} |
Definition at line 182 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::features_incompat {0} |
Definition at line 184 of file xfs_format.hpp.
Referenced by has_ftype(), xfs::parse_superblock(), XfsRecovery::recover(), and xfs::anonymous_namespace{xfs_btree.cpp}::walk_ibt_block().
| uint32_t xfs::Superblock::features_log_incompat {0} |
Definition at line 185 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::features_ro_compat {0} |
Definition at line 183 of file xfs_format.hpp.
Referenced by xfs::parse_superblock(), XfsRecovery::recover(), xfs::walk_all_free_inode_records(), xfs::walk_free_inode_btree(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
| uint8_t xfs::Superblock::flags {0} |
Definition at line 169 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| std::array<char, 12> xfs::Superblock::fname {} |
Definition at line 153 of file xfs_format.hpp.
Referenced by label(), and xfs::parse_superblock().
| uint64_t xfs::Superblock::frextents {0} |
Definition at line 165 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::gquotino {0} |
Definition at line 167 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::icount {0} |
Definition at line 162 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::ifree {0} |
Definition at line 163 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint8_t xfs::Superblock::imax_pct {0} |
Definition at line 161 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::inoalignmt {0} |
Definition at line 171 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint8_t xfs::Superblock::inodelog {0} |
Definition at line 156 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint16_t xfs::Superblock::inodesize {0} |
Definition at line 151 of file xfs_format.hpp.
Referenced by xfs::expand_chunk(), xfs::expand_chunk_free(), xfs::parse_superblock(), anonymous_namespace{xfs_recovery.cpp}::read_dinode(), XfsRecovery::recover(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
| uint16_t xfs::Superblock::inopblock {0} |
Definition at line 152 of file xfs_format.hpp.
Referenced by xfs::crack_inode(), xfs::expand_chunk(), xfs::expand_chunk_free(), xfs::parse_superblock(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
| uint8_t xfs::Superblock::inopblog {0} |
Definition at line 157 of file xfs_format.hpp.
Referenced by xfs::crack_inode(), xfs::expand_chunk(), xfs::expand_chunk_free(), and xfs::parse_superblock().
| uint8_t xfs::Superblock::inprogress {0} |
Definition at line 160 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::logblocks {0} |
Definition at line 148 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint8_t xfs::Superblock::logsectlog {0} |
Definition at line 175 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint16_t xfs::Superblock::logsectsize {0} |
Definition at line 176 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::logstart {0} |
Definition at line 140 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::logsunit {0} |
Definition at line 177 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::lsn {0} |
Definition at line 189 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::magicnum {0} |
Definition at line 134 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| std::array<uint8_t, 16> xfs::Superblock::meta_uuid {} |
Definition at line 190 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::pquotino {0} |
Definition at line 188 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint16_t xfs::Superblock::qflags {0} |
Definition at line 168 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::rblocks {0} |
Definition at line 137 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::rbmblocks {0} |
Definition at line 147 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::rbmino {0} |
Definition at line 142 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::rextents {0} |
Definition at line 138 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::rextsize {0} |
Definition at line 144 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint8_t xfs::Superblock::rextslog {0} |
Definition at line 159 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::rootino {0} |
Definition at line 141 of file xfs_format.hpp.
Referenced by xfs::parse_superblock(), and XfsRecovery::recover().
| uint64_t xfs::Superblock::rsumino {0} |
Definition at line 143 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint8_t xfs::Superblock::sectlog {0} |
Definition at line 155 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint16_t xfs::Superblock::sectsize {0} |
Definition at line 150 of file xfs_format.hpp.
Referenced by anonymous_namespace{xfs_recovery.cpp}::load_ag_headers(), xfs::parse_superblock(), XfsRecovery::recover(), and anonymous_namespace{filesystem_probes.cpp}::xfs_probe().
| uint8_t xfs::Superblock::shared_vn {0} |
Definition at line 170 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::spino_align {0} |
Definition at line 187 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint32_t xfs::Superblock::unit {0} |
Definition at line 172 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint64_t xfs::Superblock::uquotino {0} |
Definition at line 166 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| std::array<uint8_t, 16> xfs::Superblock::uuid {} |
Definition at line 139 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().
| uint16_t xfs::Superblock::versionnum {0} |
Definition at line 149 of file xfs_format.hpp.
Referenced by format_version(), and xfs::parse_superblock().
| uint32_t xfs::Superblock::width {0} |
Definition at line 173 of file xfs_format.hpp.
Referenced by xfs::parse_superblock().