Skip to content

xfsprogs: Extend per-inode extent counters

Chandan Babu R linux-xfs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/212 patches 6 repliesIn review
  2. v2 posting 1/212 patches 32 repliesSuperseded
  3. v14 patches 5 repliesSuperseded

Changes in v2 from the cover letter

1. Rebase patches on top of Darrick's btree-dynamic-depth branch.
2. Add support for using the new bulkstat ioctl version to support 64-bit data fork extent counter field.

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12xfsprogs: Move extent count limits to xfs_format.hlibxfs/xfs_format.h libxfs/xfs_types.h+7 -70 replies
2/12xfsprogs: Rename MAXEXTNUM, MAXAEXTNUM to XFS_IFORK_EXTCNT_MAXS32, XFS_IFORK_EXTCNT_MAXS16libxfs/xfs_bmap.c libxfs/xfs_format.h libxfs/xfs_inode_buf.c +2 more+12 -110 replies
3/12xfsprogs: Introduce xfs_iext_max() helperlibxfs/xfs_bmap.c libxfs/xfs_inode_buf.c libxfs/xfs_inode_fork.c +2 more+22 -160 replies
4/12xfsprogs: Use xfs_extnum_t instead of basic data typesdb/bmap.c db/frag.c libxfs/xfs_bmap.c +3 more+6 -61 reply
5/12xfsprogs: Introduce xfs_dfork_nextents() helperdb/bmap.c db/btdump.c db/check.c +11 more+123 -722 replies
6/12xfsprogs: xfs_dfork_nextents: Return extent count via an out argumentdb/bmap.c db/btdump.c db/check.c +10 more+181 -650 replies
7/12xfsprogs: Rename inode's extent counter fields based on their widthdb/inode.c libxfs/xfs_format.h libxfs/xfs_inode_buf.c +5 more+18 -180 replies
8/12xfsprogs: Promote xfs_extnum_t and xfs_aextnum_t to 64 and 32-bits respectivelylibxfs/xfs_inode_fork.c libxfs/xfs_types.h repair/dinode.c +2 more+18 -181 reply
9/12xfsprogs: Rename XFS_IOC_BULKSTAT to XFS_IOC_BULKSTAT_V5fsr/xfs_fsr.c io/bulkstat.c libfrog/bulkstat.c +1 more+9 -90 replies
10/12xfsprogs: Enable bulkstat ioctl to support 64-bit extent countersfsr/xfs_fsr.c io/bulkstat.c libfrog/bulkstat.c +3 more+175 -1230 replies
11/12xfsprogs: Extend per-inode extent counter widthsdb/field.c db/field.h db/inode.c +11 more+154 -462 replies
12/12xfsprogs: Add extcnt64bit mkfs optionman/man8/mkfs.xfs.8 mkfs/xfs_mkfs.c+30 -00 replies

Reviews trailers per patch

2 of 12 patches have a Reviewed-by or Acked-by.

PatchDarrick J. Wong
1/12
2/12
3/12
4/12R-b
5/12
6/12
7/12
8/12R-b
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 00/12] xfsprogs: Extend per-inode extent counters

This patchset implements the changes to userspace programs that are required to support extending inode's data and attr fork extent counter fields. It adds the following capabilities to xfsprogs,
1. Add support to programs in xfsprogs to be able to create and work with filesystem instances with 64-bit data fork extent counter and 32-bit attr fork extent counter fields.
2. Enable support for the newly introduced XFS_IOC_BULKSTAT_V6 ioctl.

The patchset is based on Darrick's btree-dynamic-depth branch. These patches can also be obtained from
https://github.com/chandanr/xfsprogs-dev.git at branch xfs-incompat-extend-extcnt-v2.

Changelog:
V1 -> V2:
1. Rebase patches on top of Darrick's btree-dynamic-depth branch.
2. Add support for using the new bulkstat ioctl version to support 64-bit data fork extent counter field.

Chandan Babu R (12):
xfsprogs: Move extent count limits to xfs_format.h
xfsprogs: Rename MAXEXTNUM, MAXAEXTNUM to XFS_IFORK_EXTCNT_MAXS32,
XFS_IFORK_EXTCNT_MAXS16
xfsprogs: Introduce xfs_iext_max() helper
xfsprogs: Use xfs_extnum_t instead of basic data types
xfsprogs: Introduce xfs_dfork_nextents() helper
xfsprogs: xfs_dfork_nextents: Return extent count via an out argument
xfsprogs: Rename inode's extent counter fields based on their width
xfsprogs: Promote xfs_extnum_t and xfs_aextnum_t to 64 and 32-bits
respectively
xfsprogs: Rename XFS_IOC_BULKSTAT to XFS_IOC_BULKSTAT_V5
xfsprogs: Enable bulkstat ioctl to support 64-bit extent counters
xfsprogs: Extend per-inode extent counter widths
xfsprogs: Add extcnt64bit mkfs option

 db/bmap.c                  |  21 +--
 db/btdump.c                |  11 +-
 db/check.c                 |  44 +++++--
 db/field.c                 |   4 -
 db/field.h                 |   2 -
 db/frag.c                  |  11 +-
 db/inode.c                 |  62 +++++++--
 db/metadump.c              |  12 +-
 fsr/xfs_fsr.c              |   9 +-
 include/libxlog.h          |   6 +-
 io/bulkstat.c              |  10 +-
 libfrog/bulkstat.c         | 264 +++++++++++++++++++++----------------
 libfrog/bulkstat.h         |   7 +-
 libfrog/fsgeom.h           |   5 +-
 libxfs/xfs_bmap.c          |  19 ++-
 libxfs/xfs_format.h        |  30 +++--
 libxfs/xfs_fs.h            |   9 +-
 libxfs/xfs_inode_buf.c     |  86 ++++++++++--
 libxfs/xfs_inode_buf.h     |   2 +
 libxfs/xfs_inode_fork.c    |  38 ++++--
 libxfs/xfs_inode_fork.h    |  18 +++
 libxfs/xfs_log_format.h    |   7 +-
 libxfs/xfs_types.h         |  11 +-
 logprint/log_misc.c        |  23 +++-
 logprint/log_print_all.c   |  34 ++++-
 logprint/log_print_trans.c |   2 +-
 man/man8/mkfs.xfs.8        |   7 +
 mkfs/xfs_mkfs.c            |  23 ++++
 repair/attr_repair.c       |  11 +-
 repair/bmap_repair.c       |  22 +++-
 repair/dinode.c            | 139 ++++++++++++-------
 repair/dinode.h            |   4 +-
 repair/prefetch.c          |   7 +-
 repair/scan.c              |   6 +-
 34 files changed, 665 insertions(+), 301 deletions(-)
Signature · 1 line
2.30.2