0001
0002
0003
0004
0005
0006 #ifndef __XFS_SB_H__
0007 #define __XFS_SB_H__
0008
0009 struct xfs_mount;
0010 struct xfs_sb;
0011 struct xfs_dsb;
0012 struct xfs_trans;
0013 struct xfs_fsop_geom;
0014 struct xfs_perag;
0015
0016 extern void xfs_log_sb(struct xfs_trans *tp);
0017 extern int xfs_sync_sb(struct xfs_mount *mp, bool wait);
0018 extern int xfs_sync_sb_buf(struct xfs_mount *mp);
0019 extern void xfs_sb_mount_common(struct xfs_mount *mp, struct xfs_sb *sbp);
0020 extern void xfs_sb_from_disk(struct xfs_sb *to, struct xfs_dsb *from);
0021 extern void xfs_sb_to_disk(struct xfs_dsb *to, struct xfs_sb *from);
0022 extern void xfs_sb_quota_from_disk(struct xfs_sb *sbp);
0023 extern bool xfs_sb_good_version(struct xfs_sb *sbp);
0024 extern uint64_t xfs_sb_version_to_features(struct xfs_sb *sbp);
0025
0026 extern int xfs_update_secondary_sbs(struct xfs_mount *mp);
0027
0028 #define XFS_FS_GEOM_MAX_STRUCT_VER (4)
0029 extern void xfs_fs_geometry(struct xfs_mount *mp, struct xfs_fsop_geom *geo,
0030 int struct_version);
0031 extern int xfs_sb_read_secondary(struct xfs_mount *mp,
0032 struct xfs_trans *tp, xfs_agnumber_t agno,
0033 struct xfs_buf **bpp);
0034 extern int xfs_sb_get_secondary(struct xfs_mount *mp,
0035 struct xfs_trans *tp, xfs_agnumber_t agno,
0036 struct xfs_buf **bpp);
0037
0038 extern bool xfs_validate_stripe_geometry(struct xfs_mount *mp,
0039 __s64 sunit, __s64 swidth, int sectorsize, bool silent);
0040
0041 #endif