libparted 3.6
|
Go to the source code of this file.
Data Structures | |
struct | xfs_sb |
Macros | |
#define | XFS_B_FSB_OFFSET(mp, b) ((b) & (mp)->m_blockmask) |
#define | XFS_B_TO_FSB(mp, b) ((((uint64_t)(b)) + (mp)->m_blockmask) >> (mp)->m_sb.sb_blocklog) |
#define | XFS_B_TO_FSBT(mp, b) (((uint64_t)(b)) >> (mp)->m_sb.sb_blocklog) |
#define | XFS_BB_FSB_OFFSET(mp, bb) ((bb) & ((mp)->m_bsize - 1)) |
#define | XFS_BB_TO_FSB(mp, bb) (((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log) |
#define | XFS_BB_TO_FSBT(mp, bb) ((bb) >> (mp)->m_blkbb_log) |
#define | XFS_BUF_TO_SBP(bp) ((xfs_sb_t *)XFS_BUF_PTR(bp)) |
#define | XFS_DADDR_TO_FSB(mp, d) XFS_AGB_TO_FSB(mp, XFS_DADDR_TO_AGNO(mp,d), XFS_DADDR_TO_AGBNO(mp,d)) |
#define | XFS_FSB_TO_B(mp, fsbno) |
#define | XFS_FSB_TO_BB(mp, fsbno) ((fsbno) << (mp)->m_blkbb_log) |
#define | XFS_FSB_TO_DADDR(mp, fsbno) |
#define | XFS_HDR_BLOCK(mp, d) ((xfs_agblock_t)(XFS_BB_TO_FSBT(mp,d))) |
#define | XFS_SB_ALL_BITS ((1LL << XFS_SB_NUM_BITS) - 1) |
#define | XFS_SB_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_SB_DADDR) |
#define | XFS_SB_DADDR ((xfs_daddr_t)0) /* daddr in file system/ag */ |
#define | XFS_SB_FNAME XFS_SB_MVAL(FNAME) |
#define | XFS_SB_GOOD_SASH_VERSION(sbp) |
#define | XFS_SB_GOOD_VERSION(sbp) |
#define | XFS_SB_GOOD_VERSION_INT(sbp) |
#define | XFS_SB_GQUOTINO XFS_SB_MVAL(GQUOTINO) |
#define | XFS_SB_MAGIC 0x58465342 /* 'XFSB' */ |
#define | XFS_SB_MAX_SHARED_VN 0 |
#define | XFS_SB_MOD_BITS |
#define | XFS_SB_MVAL(x) (1LL << XFS_SBS_ ## x) |
#define | XFS_SB_NUM_BITS ((int)XFS_SBS_FIELDCOUNT) |
#define | XFS_SB_QFLAGS XFS_SB_MVAL(QFLAGS) |
#define | XFS_SB_RBMINO XFS_SB_MVAL(RBMINO) |
#define | XFS_SB_ROOTINO XFS_SB_MVAL(ROOTINO) |
#define | XFS_SB_RSUMINO XFS_SB_MVAL(RSUMINO) |
#define | XFS_SB_SHARED_VN XFS_SB_MVAL(SHARED_VN) |
#define | XFS_SB_UNIT XFS_SB_MVAL(UNIT) |
#define | XFS_SB_UQUOTINO XFS_SB_MVAL(UQUOTINO) |
#define | XFS_SB_UUID XFS_SB_MVAL(UUID) |
#define | XFS_SB_VERSION_1 1 /* 5.3, 6.0.1, 6.1 */ |
#define | XFS_SB_VERSION_2 2 /* 6.2 - attributes */ |
#define | XFS_SB_VERSION_3 3 /* 6.2 - new inode version */ |
#define | XFS_SB_VERSION_4 4 /* 6.2+ - bitmask version */ |
#define | XFS_SB_VERSION_ADDATTR(sbp) |
#define | XFS_SB_VERSION_ADDDALIGN(sbp) |
#define | XFS_SB_VERSION_ADDEXTFLGBIT(sbp) |
#define | XFS_SB_VERSION_ADDNLINK(sbp) |
#define | XFS_SB_VERSION_ADDQUOTA(sbp) |
#define | XFS_SB_VERSION_ADDSHARED(sbp) |
#define | XFS_SB_VERSION_ALIGNBIT 0x0080 |
#define | XFS_SB_VERSION_ALLFBITS 0xfff0 |
#define | XFS_SB_VERSION_ATTRBIT 0x0010 |
#define | XFS_SB_VERSION_DALIGNBIT 0x0100 |
#define | XFS_SB_VERSION_DIRV2BIT 0x2000 |
#define | XFS_SB_VERSION_EXTFLGBIT 0x1000 |
#define | XFS_SB_VERSION_HASALIGN(sbp) |
#define | XFS_SB_VERSION_HASATTR(sbp) |
#define | XFS_SB_VERSION_HASDALIGN(sbp) |
#define | XFS_SB_VERSION_HASDIRV2(sbp) |
#define | XFS_SB_VERSION_HASEXTFLGBIT(sbp) |
#define | XFS_SB_VERSION_HASNLINK(sbp) |
#define | XFS_SB_VERSION_HASQUOTA(sbp) |
#define | XFS_SB_VERSION_HASSHARED(sbp) |
#define | XFS_SB_VERSION_MKFS(ia, dia, extflag, dirv2) |
#define | XFS_SB_VERSION_NLINKBIT 0x0020 |
#define | XFS_SB_VERSION_NUM(sbp) ((sbp)->sb_versionnum & XFS_SB_VERSION_NUMBITS) |
#define | XFS_SB_VERSION_NUMBITS 0x000f |
#define | XFS_SB_VERSION_OKREALBITS |
#define | XFS_SB_VERSION_OKREALFBITS |
#define | XFS_SB_VERSION_OKSASHBITS |
#define | XFS_SB_VERSION_OKSASHFBITS |
#define | XFS_SB_VERSION_QUOTABIT 0x0040 |
#define | XFS_SB_VERSION_REALFBITS 0x0ff0 |
#define | XFS_SB_VERSION_SASHFBITS 0xf000 |
#define | XFS_SB_VERSION_SHAREDBIT 0x0200 |
#define | XFS_SB_VERSION_SUBALIGN(sbp) |
#define | XFS_SB_VERSION_SUBEXTFLGBIT(sbp) |
#define | XFS_SB_VERSION_SUBSHARED(sbp) |
#define | XFS_SB_VERSION_TONEW(v) |
#define | XFS_SB_VERSION_TOOLD(v) |
#define | XFS_SB_VERSIONNUM XFS_SB_MVAL(VERSIONNUM) |
#define | XFS_SB_WIDTH XFS_SB_MVAL(WIDTH) |
#define | XFS_SBF_NOFLAGS 0x00 /* no flags set */ |
#define | XFS_SBF_READONLY 0x01 /* only read-only mounts allowed */ |
Typedefs | |
typedef struct xfs_sb | xfs_sb_t |
#define XFS_B_FSB_OFFSET | ( | mp, | |
b | |||
) | ((b) & (mp)->m_blockmask) |
#define XFS_B_TO_FSB | ( | mp, | |
b | |||
) | ((((uint64_t)(b)) + (mp)->m_blockmask) >> (mp)->m_sb.sb_blocklog) |
#define XFS_B_TO_FSBT | ( | mp, | |
b | |||
) | (((uint64_t)(b)) >> (mp)->m_sb.sb_blocklog) |
#define XFS_BB_FSB_OFFSET | ( | mp, | |
bb | |||
) | ((bb) & ((mp)->m_bsize - 1)) |
#define XFS_BB_TO_FSB | ( | mp, | |
bb | |||
) | (((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log) |
#define XFS_BB_TO_FSBT | ( | mp, | |
bb | |||
) | ((bb) >> (mp)->m_blkbb_log) |
#define XFS_BUF_TO_SBP | ( | bp | ) | ((xfs_sb_t *)XFS_BUF_PTR(bp)) |
#define XFS_DADDR_TO_FSB | ( | mp, | |
d | |||
) | XFS_AGB_TO_FSB(mp, XFS_DADDR_TO_AGNO(mp,d), XFS_DADDR_TO_AGBNO(mp,d)) |
#define XFS_FSB_TO_B | ( | mp, | |
fsbno | |||
) |
#define XFS_FSB_TO_BB | ( | mp, | |
fsbno | |||
) | ((fsbno) << (mp)->m_blkbb_log) |
#define XFS_FSB_TO_DADDR | ( | mp, | |
fsbno | |||
) |
#define XFS_HDR_BLOCK | ( | mp, | |
d | |||
) | ((xfs_agblock_t)(XFS_BB_TO_FSBT(mp,d))) |
#define XFS_SB_ALL_BITS ((1LL << XFS_SB_NUM_BITS) - 1) |
#define XFS_SB_BLOCK | ( | mp | ) | XFS_HDR_BLOCK(mp, XFS_SB_DADDR) |
#define XFS_SB_DADDR ((xfs_daddr_t)0) /* daddr in file system/ag */ |
#define XFS_SB_FNAME XFS_SB_MVAL(FNAME) |
#define XFS_SB_GOOD_SASH_VERSION | ( | sbp | ) |
#define XFS_SB_GOOD_VERSION | ( | sbp | ) |
#define XFS_SB_GOOD_VERSION_INT | ( | sbp | ) |
#define XFS_SB_GQUOTINO XFS_SB_MVAL(GQUOTINO) |
#define XFS_SB_MAGIC 0x58465342 /* 'XFSB' */ |
#define XFS_SB_MAX_SHARED_VN 0 |
#define XFS_SB_MOD_BITS |
#define XFS_SB_MVAL | ( | x | ) | (1LL << XFS_SBS_ ## x) |
#define XFS_SB_NUM_BITS ((int)XFS_SBS_FIELDCOUNT) |
#define XFS_SB_QFLAGS XFS_SB_MVAL(QFLAGS) |
#define XFS_SB_RBMINO XFS_SB_MVAL(RBMINO) |
#define XFS_SB_ROOTINO XFS_SB_MVAL(ROOTINO) |
#define XFS_SB_RSUMINO XFS_SB_MVAL(RSUMINO) |
#define XFS_SB_SHARED_VN XFS_SB_MVAL(SHARED_VN) |
#define XFS_SB_UNIT XFS_SB_MVAL(UNIT) |
#define XFS_SB_UQUOTINO XFS_SB_MVAL(UQUOTINO) |
#define XFS_SB_UUID XFS_SB_MVAL(UUID) |
#define XFS_SB_VERSION_1 1 /* 5.3, 6.0.1, 6.1 */ |
#define XFS_SB_VERSION_2 2 /* 6.2 - attributes */ |
#define XFS_SB_VERSION_3 3 /* 6.2 - new inode version */ |
#define XFS_SB_VERSION_4 4 /* 6.2+ - bitmask version */ |
#define XFS_SB_VERSION_ADDATTR | ( | sbp | ) |
#define XFS_SB_VERSION_ADDDALIGN | ( | sbp | ) |
#define XFS_SB_VERSION_ADDEXTFLGBIT | ( | sbp | ) |
#define XFS_SB_VERSION_ADDNLINK | ( | sbp | ) |
#define XFS_SB_VERSION_ADDQUOTA | ( | sbp | ) |
#define XFS_SB_VERSION_ADDSHARED | ( | sbp | ) |
#define XFS_SB_VERSION_ALIGNBIT 0x0080 |
#define XFS_SB_VERSION_ALLFBITS 0xfff0 |
#define XFS_SB_VERSION_ATTRBIT 0x0010 |
#define XFS_SB_VERSION_DALIGNBIT 0x0100 |
#define XFS_SB_VERSION_DIRV2BIT 0x2000 |
#define XFS_SB_VERSION_EXTFLGBIT 0x1000 |
#define XFS_SB_VERSION_HASALIGN | ( | sbp | ) |
#define XFS_SB_VERSION_HASATTR | ( | sbp | ) |
#define XFS_SB_VERSION_HASDALIGN | ( | sbp | ) |
#define XFS_SB_VERSION_HASDIRV2 | ( | sbp | ) |
#define XFS_SB_VERSION_HASEXTFLGBIT | ( | sbp | ) |
#define XFS_SB_VERSION_HASNLINK | ( | sbp | ) |
#define XFS_SB_VERSION_HASQUOTA | ( | sbp | ) |
#define XFS_SB_VERSION_HASSHARED | ( | sbp | ) |
#define XFS_SB_VERSION_MKFS | ( | ia, | |
dia, | |||
extflag, | |||
dirv2 | |||
) |
#define XFS_SB_VERSION_NLINKBIT 0x0020 |
#define XFS_SB_VERSION_NUM | ( | sbp | ) | ((sbp)->sb_versionnum & XFS_SB_VERSION_NUMBITS) |
#define XFS_SB_VERSION_NUMBITS 0x000f |
#define XFS_SB_VERSION_OKREALBITS |
#define XFS_SB_VERSION_OKREALFBITS |
#define XFS_SB_VERSION_OKSASHBITS |
#define XFS_SB_VERSION_OKSASHFBITS |
#define XFS_SB_VERSION_QUOTABIT 0x0040 |
#define XFS_SB_VERSION_REALFBITS 0x0ff0 |
#define XFS_SB_VERSION_SASHFBITS 0xf000 |
#define XFS_SB_VERSION_SHAREDBIT 0x0200 |
#define XFS_SB_VERSION_SUBALIGN | ( | sbp | ) |
#define XFS_SB_VERSION_SUBEXTFLGBIT | ( | sbp | ) |
#define XFS_SB_VERSION_SUBSHARED | ( | sbp | ) |
#define XFS_SB_VERSION_TONEW | ( | v | ) |
#define XFS_SB_VERSION_TOOLD | ( | v | ) |
#define XFS_SB_VERSIONNUM XFS_SB_MVAL(VERSIONNUM) |
#define XFS_SB_WIDTH XFS_SB_MVAL(WIDTH) |
#define XFS_SBF_NOFLAGS 0x00 /* no flags set */ |
#define XFS_SBF_READONLY 0x01 /* only read-only mounts allowed */ |
enum xfs_sb_field_t |