XFS_FSOP_GEOM_FLAGS_NREXT64 indicates that the current filesystem instance supports 64-bit per-inode extent counters. Signed-off-by: Chandan Babu R <chandan.babu@xxxxxxxxxx> --- libxfs/xfs_fs.h | 1 + libxfs/xfs_sb.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/libxfs/xfs_fs.h b/libxfs/xfs_fs.h index c43877c8..42bc3950 100644 --- a/libxfs/xfs_fs.h +++ b/libxfs/xfs_fs.h @@ -251,6 +251,7 @@ typedef struct xfs_fsop_resblks { #define XFS_FSOP_GEOM_FLAGS_REFLINK (1 << 20) /* files can share blocks */ #define XFS_FSOP_GEOM_FLAGS_BIGTIME (1 << 21) /* 64-bit nsec timestamps */ #define XFS_FSOP_GEOM_FLAGS_INOBTCNT (1 << 22) /* inobt btree counter */ +#define XFS_FSOP_GEOM_FLAGS_NREXT64 (1 << 23) /* 64-bit extent counter */ /* * Minimum and maximum sizes need for growth checks. diff --git a/libxfs/xfs_sb.c b/libxfs/xfs_sb.c index 7ab13e07..6045266e 100644 --- a/libxfs/xfs_sb.c +++ b/libxfs/xfs_sb.c @@ -1136,6 +1136,9 @@ xfs_fs_geometry( } else { geo->logsectsize = BBSIZE; } + if (xfs_has_nrext64(mp)) + geo->flags |= XFS_FSOP_GEOM_FLAGS_NREXT64; + geo->rtsectsize = sbp->sb_blocksize; geo->dirblocksize = xfs_dir2_dirblock_bytes(sbp); -- 2.30.2