Skip to content

e2fsprogs mke2fs optimizations and new features

Theodore Ts'o linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12libext2fs: fix off-by-one bug in ext2fs_extent_insert()lib/ext2fs/extent.c+3 -10 replies
2/12libext2fs: clean up generic handling of ext2fs_find_first_{set,zero}_*()lib/ext2fs/blkmap64_ba.c lib/ext2fs/gen_bitmap64.c+36 -360 replies
3/12libext2fs: build tst_bitmaps with rep invariants checking enabledlib/ext2fs/Makefile.in lib/ext2fs/blkmap64_rb.c+15 -60 replies
4/12libext: optimize find_first_set() for bitarray-based bitmapslib/ext2fs/blkmap64_ba.c+76 -10 replies
5/12libext2fs: optimize find_first_{zero,set}() for red-black tree based bitmapslib/ext2fs/blkmap64_rb.c+89 -00 replies
6/12libext2fs: further clean up and rename check_block_uninitlib/ext2fs/alloc.c+4 -271 reply
7/12libext2fs: add ext2fs_block_alloc_stats_range()lib/ext2fs/alloc_stats.c lib/ext2fs/ext2fs.h+43 -01 reply
8/12libext2fs: optimize ext2fs_allocate_group_table()lib/ext2fs/alloc_tables.c+7 -150 replies
9/12libext2: optimize ext2fs_new_block2()lib/ext2fs/alloc.c+17 -172 replies
10/12mke2fs: optimize fix_cluster_bg_counts()misc/mke2fs.c+27 -140 replies
11/12Add support for new compat feature "sparse_super2"debugfs/set_fields.c lib/e2p/feature.c lib/e2p/ls.c +13 more+284 -92 replies
12/12mke2fs: allow metadata blocks to be at the beginning of the file systemlib/ext2fs/ext2fs.h lib/ext2fs/mkjournal.c misc/mke2fs.8.in +2 more+87 -24 replies

Reviews trailers per patch

1 of 12 patches has a Reviewed-by or Acked-by.

PatchDarrick J. Wong
1/12
2/12
3/12
4/12
5/12
6/12A-b
7/12
8/12
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 v1 thread

Cover letter [PATCH 00/12] e2fsprogs mke2fs optimizations and new features

Here is the latest version of the patches I've been working on optimize creating very large file systems, and allowing the file system to be created with the metadata blocks located at the beginning of the device, so the data block area can be made maximally contiguous.

An example of the optimizations and new features added in this patch set:

% cp /dev/null /tmp/foo.img
% mke2fs -F -t ext4 -O sparse_super2 -E num_backup_sb=0,packed_meta_blocks /tmp/foo.img 64T

Theodore Ts'o (12):
libext2fs: fix off-by-one bug in ext2fs_extent_insert()
libext2fs: clean up generic handling of

    ext2fs_find_first_{set,zero}_*()

libext2fs: build tst_bitmaps with rep invariants checking enabled
libext: optimize find_first_set() for bitarray-based bitmaps
libext2fs: optimize find_first_{zero,set}() for red-black tree based
bitmaps
libext2fs: further clean up and rename check_block_uninit
libext2fs: add ext2fs_block_alloc_stats_range()
libext2fs: optimize ext2fs_allocate_group_table()
libext2: optimize ext2fs_new_block2()
mke2fs: optimize fix_cluster_bg_counts()
Add support for new compat feature "sparse_super2"
mke2fs: allow metadata blocks to be at the beginning of the file
system

 debugfs/set_fields.c        |   2 +
 lib/e2p/feature.c           |   2 +
 lib/e2p/ls.c                |   8 ++
 lib/ext2fs/Makefile.in      |   7 +-
 lib/ext2fs/alloc.c          |  65 +++++-----------
 lib/ext2fs/alloc_stats.c    |  41 ++++++++++
 lib/ext2fs/alloc_tables.c   |  22 ++----
 lib/ext2fs/blkmap64_ba.c    |  83 ++++++++++++++++++--
 lib/ext2fs/blkmap64_rb.c    | 103 ++++++++++++++++++++++++-
 lib/ext2fs/closefs.c        |  12 ++-
 lib/ext2fs/ext2_fs.h        |   4 +-
 lib/ext2fs/ext2fs.h         |   6 +-
 lib/ext2fs/extent.c         |   4 +-
 lib/ext2fs/gen_bitmap64.c   |  66 ++++++++--------
 lib/ext2fs/initialize.c     |   2 +
 lib/ext2fs/mkjournal.c      |   5 +-
 lib/ext2fs/res_gdt.c        |  13 ++++
 lib/ext2fs/swapfs.c         |   2 +
 lib/ext2fs/tst_super_size.c |   3 +-
 misc/ext4.5.in              |  11 +++
 misc/mke2fs.8.in            |  20 +++++
 misc/mke2fs.c               | 136 ++++++++++++++++++++++++++++-----
 misc/mke2fs.conf.5.in       |   9 +++
 resize/online.c             |   8 ++
 resize/resize2fs.c          | 182 +++++++++++++++++++++++++++++++++++++++++++-
 25 files changed, 688 insertions(+), 128 deletions(-)
Signature · 1 line
1.8.5.rc3.362.gdf10213