Skip to content

meta_bg online resize patches

Theodore Ts'o linux-ext4 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 0 repliesNew
  2. v15 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ext4: don't copy non-existent gdt blocks when resizingfs/ext4/resize.c+4 -00 replies
2/9ext4: avoid duplicate writes of the backup bg descriptor blocksfs/ext4/resize.c+6 -40 replies
3/9ext4: grow the s_flex_groups array as needed when resizingfs/ext4/ext4.h fs/ext4/resize.c fs/ext4/super.c+47 -180 replies
4/9ext4: grow the s_group_info array as neededfs/ext4/ext4.h fs/ext4/mballoc.c fs/ext4/resize.c+50 -400 replies
5/9ext4: add online resizing support for meta_bg and 64-bit file systemsfs/ext4/ioctl.c fs/ext4/resize.c+163 -630 replies
6/9ext4: set bg_itable_unused when resizingfs/ext4/resize.c+3 -00 replies
7/9ext4: convert file system to meta_bg if needed during resizingfs/ext4/resize.c+133 -170 replies
8/9ext4: log a resize update to the console every 10 secondsfs/ext4/resize.c+8 -00 replies
9/9ext4: advertise the fact that the kernel supports meta_bg resizingfs/ext4/super.c+2 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH 0/9 v3] meta_bg online resize patches

Here is an updated meta_bg online resize patches. This set of patches needs to be paired with a set of e2fsprogs patches to enable online resize. With this set of patches, we can start with a file system which uses the resize_inode scheme of reserved gdt blocks, but after we have consumed all of the reserved gdt blocks, the kernel will switch over to using the meta_bg scheme of online growth.

This works both with traditional 32-bit filesystems as well newer 64-bit file systems. As an example of the sort of on-line resizes that will work, my testing included:

*  mke2fs -t ext4 /dev/vdc 2M ; mount /dev/vdc; resize2fs /dev/vdc 8G
*  mke2fs -t ext2 /dev/vdc 2M ; mount /dev/vdc; resize2fs /dev/vdc 8G
*  mke2fs -t ext4 -O 64bit /dev/vdc 12T ; mount /dev/vdc; resize2fs /dev/vdc 18T

Theodore Ts'o (6):
ext4: grow the s_flex_groups array as needed when resizing
ext4: grow the s_group_info array as needed
ext4: set bg_itable_unused when resizing
ext4: convert file system to meta_bg if needed during resizing
ext4: log a resize update to the console every 10 seconds
ext4: advertise the fact that the kernel supports meta_bg resizing

Yongqiang Yang (3):
ext4: don't copy non-existent gdt blocks when resizing
ext4: avoid duplicate writes of the backup bg descriptor blocks
ext4: add online resizing support for meta_bg and 64-bit file systems

 fs/ext4/ext4.h    |   6 +
 fs/ext4/ioctl.c   |  15 ---
 fs/ext4/mballoc.c |  79 ++++++-----
 fs/ext4/resize.c  | 386 +++++++++++++++++++++++++++++++++++++++++++++---------
 fs/ext4/super.c   |  50 +++++--
 5 files changed, 405 insertions(+), 131 deletions(-)
Signature · 1 line
1.7.12.rc0.22.gcdd159b