Skip to content

xfsprogs: sparse inode chunks

Brian Foster linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest28 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28xfs: create individual inode alloc. helperlibxfs/xfs_ialloc.c+12 -20 replies
2/28xfs: update free inode record logic to support sparse inode recordslibxfs/xfs_ialloc.c+12 -40 replies
3/28xfs: support min/max agbno args in block allocatorlibxfs/xfs_alloc.c libxfs/xfs_alloc.h+39 -50 replies
4/28xfs: add sparse inode chunk alignment superblock fieldlibxfs/xfs_format.h libxfs/xfs_sb.c+4 -40 replies
5/28xfs: use sparse chunk alignment for min. inode allocation requirementinclude/xfs_mount.h libxfs/xfs_ialloc.c libxfs/xfs_sb.c+8 -10 replies
6/28xfs: sparse inode chunks feature helpers and mount requirementslibxfs/xfs_format.h libxfs/xfs_sb.c+25 -00 replies
7/28xfs: add fs geometry bit for sparse inode chunkslibxfs/xfs_fs.h+1 -00 replies
8/28xfs: introduce inode record hole mask for sparse inode chunksdb/btblock.c db/check.c libxfs/xfs_format.h +4 more+98 -280 replies
9/28xfs: pass inode count through ordered icreate log itemlibxfs/xfs_ialloc.c libxfs/xfs_ialloc.h+5 -40 replies
10/28xfs: enable sparse inode chunks for v5 superblockslibxfs/xfs_format.h+2 -10 replies
11/28mkfs: sparse inode chunk supportman/man8/mkfs.xfs.8 mkfs/xfs_mkfs.c+51 -30 replies
12/28db: support sparse inode chunk inobt record and sb fieldsdb/btblock.c db/btblock.h db/field.c +5 more+90 -10 replies
13/28db: show sparse inodes feature state in version command outputdb/sb.c+2 -00 replies
14/28growfs: display sparse inode status from xfs_infogrowfs/xfs_growfs.c+8 -50 replies
15/28repair: handle sparse format inobt record freecount correctlyrepair/phase5.c repair/scan.c+30 -131 reply
16/28repair: remove duplicate field from aghdr_cntsrepair/scan.c+1 -30 replies
17/28repair: use ir_count for filesystems with sparse inode supportrepair/scan.c+10 -10 replies
18/28repair: scan and track sparse inode chunks correctlyinclude/libxfs.h repair/incore.h repair/incore_ino.c +1 more+72 -71 reply
19/28repair: scan sparse finobt records correctlyrepair/scan.c+43 -82 replies
20/28repair: validate ir_count field for sparse format recordsrepair/scan.c+34 -90 replies
21/28repair: process sparse inode records correctlyrepair/dino_chunks.c+98 -641 reply
22/28repair: factor out sparse inodes from finobt reconstructionrepair/incore.h+10 -20 replies
23/28repair: do not account sparse inodes in phase 5 cursor init.repair/phase5.c+11 -20 replies
24/28repair: reconstruct sparse inode records correctly on diskrepair/phase5.c+39 -80 replies
25/28repair: do not prefetch holes in sparse inode chunksrepair/prefetch.c+14 -30 replies
26/28repair: handle sparse inode alignmentrepair/sb.c+20 -50 replies
27/28metadump: reorder inode record sanity checks and inode buffer readdb/metadump.c+12 -130 replies
28/28metadump: support sparse inode recordsdb/metadump.c+60 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/28] xfsprogs: sparse inode chunks

Hi all,

Now that the sparse inode chunks feature is merged into the kernel tree for 4.2, here is the first official drop of userspace support. This series is based on the current libxfs-4.1-update branch.

Patches 1-10 are libxfs infrastructure and correspond to the similarly named kernel patches. The bits not relevant to userspace are dropped along with the bulk of the sparse inode chunk allocation logic from the kernel due to the combination of non-existent dependencies in userspace (e.g., xfs_bit.c) and the fact that this code isn't invoked from userspace. The experimental feature warning was also dropped to avoid noisy mkfs warnings that lead to spurious xfstests failures. The subsequent patches add support to mkfs, xfs_db, xfs_info, xfs_repair and xfs_metadump.

Use the new '-i sparse' option to format a filesystem with sparse inode chunks enabled:

mkfs.xfs -f -m crc=1,finobt=1 -i sparse <dev>

Thoughts, reviews, flames appreciated. Thanks.

Brian

Brian Foster (28):
xfs: create individual inode alloc. helper
xfs: update free inode record logic to support sparse inode records
xfs: support min/max agbno args in block allocator
xfs: add sparse inode chunk alignment superblock field
xfs: use sparse chunk alignment for min. inode allocation requirement
xfs: sparse inode chunks feature helpers and mount requirements
xfs: add fs geometry bit for sparse inode chunks
xfs: introduce inode record hole mask for sparse inode chunks
xfs: pass inode count through ordered icreate log item
xfs: enable sparse inode chunks for v5 superblocks
mkfs: sparse inode chunk support
db: support sparse inode chunk inobt record and sb fields
db: show sparse inodes feature state in version command output
growfs: display sparse inode status from xfs_info
repair: handle sparse format inobt record freecount correctly
repair: remove duplicate field from aghdr_cnts
repair: use ir_count for filesystems with sparse inode support
repair: scan and track sparse inode chunks correctly
repair: scan sparse finobt records correctly
repair: validate ir_count field for sparse format records
repair: process sparse inode records correctly
repair: factor out sparse inodes from finobt reconstruction
repair: do not account sparse inodes in phase 5 cursor init.
repair: reconstruct sparse inode records correctly on disk
repair: do not prefetch holes in sparse inode chunks
repair: handle sparse inode alignment
metadump: reorder inode record sanity checks and inode buffer read
metadump: support sparse inode records

 db/btblock.c              |  45 ++++++++++--
 db/btblock.h              |   3 +
 db/check.c                |   8 +--
 db/field.c                |   4 ++
 db/field.h                |   2 +
 db/init.c                 |   4 +-
 db/metadump.c             |  90 ++++++++++++++++-------
 db/sb.c                   |   3 +
 db/type.c                 |  40 +++++++++++
 db/type.h                 |   1 +
 growfs/xfs_growfs.c       |  13 ++--
 include/libxfs.h          |  16 +++++
 include/xfs_mount.h       |   2 +
 libxfs/xfs_alloc.c        |  42 +++++++++--
 libxfs/xfs_alloc.h        |   2 +
 libxfs/xfs_format.h       |  48 +++++++++++--
 libxfs/xfs_fs.h           |   1 +
 libxfs/xfs_ialloc.c       |  87 +++++++++++++++++-----
 libxfs/xfs_ialloc.h       |   2 +-
 libxfs/xfs_ialloc_btree.c |  11 ++-
 libxfs/xfs_sb.c           |  27 ++++++-
 man/man8/mkfs.xfs.8       |  17 +++++
 mkfs/xfs_mkfs.c           |  37 +++++++++-
 repair/dino_chunks.c      | 162 ++++++++++++++++++++++++-----------------
 repair/incore.h           |  26 ++++++-
 repair/incore_ino.c       |   1 +
 repair/phase5.c           |  58 +++++++++++++--
 repair/prefetch.c         |  17 ++++-
 repair/sb.c               |  25 +++++--
 repair/scan.c             | 178 +++++++++++++++++++++++++++++++++++++---------
 30 files changed, 782 insertions(+), 190 deletions(-)
Signature · 6 lines
1.9.3

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs