Skip to contentSkip to conversation

tests: regression test for resizing inodes on a metadata_csum fs

PATCH In review Darrick J. Wong 2 participants 2 messages Nov 12, 2014 – Dec 14, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: regression test for resizing inodes on a metadata_csum fs

Regression test for a problem inadvertently fixed by the patchset "e2fsprogs/tune2fs: fix memory leak in inode_scan_and_fix()" by Xiaoguang Wang.

---
 tests/t_iexpand_full/expect |   38 +++++++++++++++++++++
 tests/t_iexpand_full/name   |    1 +
 tests/t_iexpand_full/script |   79 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 118 insertions(+)
 create mode 100644 tests/t_iexpand_full/expect
 create mode 100644 tests/t_iexpand_full/name
 create mode 100644 tests/t_iexpand_full/script
tests/t_iexpand_full/expect new file +38 -0
new file mode 100644
index 0000000..3eb1715
@@ -0,0 +1,38 @@
+tune2fs test
+Creating filesystem with 786432 1k blocks and 98304 inodes
+Superblock backups stored on blocks: 
+	8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409, 663553
+
+Allocating group tables:      done                            
+Writing inode tables:      done                            
+Creating journal (16384 blocks): done
+Creating 6368 huge file(s) with 117 blocks each: done
+Writing superblocks and filesystem accounting information:      done
+
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+
+Exit status is 0
+tune2fs -I 256 test.img
+Setting inode size 256
+Exit status is 0
+Change in FS metadata:
+@@ -13 +13 @@
+-Free blocks:              12301
++Free blocks:              12
+@@ -22 +22 @@
+-Inode blocks per group:   128
++Inode blocks per group:   256
+@@ -28 +28 @@
+-Inode size:	          128
++Inode size:	          256
+Pass 1: Checking inodes, blocks, and sizes
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Pass 5: Checking group summary information
+
+Exit status is 0
tests/t_iexpand_full/name new file +1 -0
new file mode 100644
index 0000000..2241b34
@@ -0,0 +1 @@
+expand inodes on a totally full filesystem
tests/t_iexpand_full/script new file +79 -0

79 lines not on this page · raw message

#1 lore raw
Quoted 4 lines · Darrick J. Wong

Regression test for a problem inadvertently fixed by the patchset "e2fsprogs/tune2fs: fix memory leak in inode_scan_and_fix()" by Xiaoguang Wang.

This was applied earlier, but it looks like I forgot to ack it. Thanks!!

- Ted