Skip to content

e2fsprogs: Resizing rewrite

Jan Kara linux-ext4 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest21 patches 0 repliesNew
  2. v119 patches 18 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21ext2fs: Add pointer to allocator private data into ext2_filsyslib/ext2fs/ext2fs.h+2 -00 replies
2/21ext2fs: Implement ext2fs_allocate_group_table2()lib/ext2fs/alloc_tables.c lib/ext2fs/ext2fs.h+78 -260 replies
3/21resize2fs: Use ext2fs_allocate_group_table2()resize/resize2fs.c+4 -50 replies
4/21ext2fs: Provide helper for wiping resize inodelib/ext2fs/ext2fs.h lib/ext2fs/res_gdt.c resize/resize2fs.c+36 -210 replies
5/21ext2fs: Implement block moving in libext2fslib/ext2fs/Makefile.in lib/ext2fs/ext2fs.h lib/ext2fs/extent_map.c +2 more+1211 -10 replies
6/21ext2fs: Implement inode moving in libext2fslib/ext2fs/ext2fs.h lib/ext2fs/move.c+440 -00 replies
7/21tune2fs: Implement setting and disabling of 64-bit featuremisc/tune2fs.c+354 -220 replies
8/21tests: Convert tests for 64bit feature to use tune2fstests/r_32to64bit/expect tests/r_32to64bit/name tests/r_32to64bit/script +37 more+1068 -10830 replies
9/21mke2fs: Allow specifying number of reserved inodesmisc/mke2fs.8.in misc/mke2fs.c+45 -10 replies
10/21ext2fs: Fixup inline directory testlib/ext2fs/inline_data.c+6 -50 replies
11/21tests: Specify number of reserved inodes for tests where it matterstests/d_special_files/expect tests/d_special_files/script tests/f_desc_size_bad/script +5 more+10 -100 replies
12/21libext2fs: Bump default number of reserved inodes to 64lib/ext2fs/initialize.c misc/mke2fs.8.in tests/d_dumpe2fs_group_only/expect +56 more+234 -2280 replies
13/21tune2fs: Add support for changing number of reserved inodesmisc/tune2fs.8.in misc/tune2fs.c+115 -00 replies
14/21mke2fs, tune2fs: Tests for handling reserved_inodes optiontests/m_reserved_inodes/expect.1 tests/m_reserved_inodes/script tests/t_reserved_inodes_decrease/expect +8 more+1247 -00 replies
15/21resize2fs: Rip out 64-bit feature handling from resize2fsresize/main.c resize/resize2fs.8.in resize/resize2fs.c+9 -3980 replies
16/21ext2fs: Remove old block mapping functionlib/ext2fs/bmove.c lib/ext2fs/ext2fs.h+0 -1820 replies
17/21resize2fs: Remove duplicate conditionresize/resize2fs.c+1 -50 replies
18/21ext2fs: Add extent dumping function to extent mapping codelib/ext2fs/extent_map.c+17 -00 replies
19/21resize2fs: Remove extent mapping coderesize/Makefile.in resize/extent.c resize/resize2fs.h+3 -2560 replies
20/21ext2fs: Move extent mapping testlib/ext2fs/Makefile.in lib/ext2fs/tst_extent_map.c lib/ext2fs/tst_extent_map_in +3 more+203 -2110 replies
21/21resize2fs: Use libextfs2 helpers for resizingresize/online.c resize/resize2fs.c resize/resize2fs.h +2 more+578 -18140 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH 00/21 v2] e2fsprogs: Resizing rewrite

Hello,

this patch series factors out large parts of resizing code into libext2fs. The motivation of this is that handling of enabling / disabling of more and more features requires moving blocks or inodes with rewriting all the references and using resize2fs for that is not logical from user interface POV.

The series is structured as follows.

* Patches 1-4 are various small cleanups and improvements.

* Patches 5-6 implement the main functionality. The functionality is implemented by two functions:

ext2fs_move_blocks() which gets filesystem and bitmap of blocks which it should make free and the function takes care of everything needed to make the blocks free.

ext2fs_move_inodes() which gets filesystem and bitmap of inodes which it should make free and the function takes care of everything needed to make these inodes free.

* Patches 7-8 implements enabling / disabling 64-bit feature in tune2fs where it is more logical and update tests to use tune2fs instead of resize2fs.

* Patches 9-14 add support for changing number of reserved inodes in e2fsprogs, update tests to reflect changed default number of reserved inodes and also add some basic testing of the new functionality.

* Patches 15-16 remove some now undeeded code

* Patches 17-21 change resize2fs itself to use code from libext2fs to perform resizing.

I have verified that all the tests in e2fsprogs now pass so things should be working reasonably but since this is basically a complete rewrite of the resizing code which is pretty complex, there may be bugs still lurking...

Honza