]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
tests: verify > 65000 subdirectories
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 12 Apr 2012 22:02:12 +0000 (16:02 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 19 Aug 2019 01:38:27 +0000 (21:38 -0400)
Add test case to verify nlink handling of large directories.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_many_subdirs/expect.1 [new file with mode: 0644]
tests/f_many_subdirs/expect.2 [new file with mode: 0644]
tests/f_many_subdirs/image.gz [new file with mode: 0644]
tests/f_many_subdirs/name [new file with mode: 0644]

diff --git a/tests/f_many_subdirs/expect.1 b/tests/f_many_subdirs/expect.1
new file mode 100644 (file)
index 0000000..f2fd78f
--- /dev/null
@@ -0,0 +1,45 @@
+Pass 1: Checking inodes, blocks, and sizes
+Deleted inode 26363 has zero dtime.  Fix? yes
+
+Pass 2: Checking directory structure
+Entry 'nlink_eq_0' in / (2) has deleted/unused inode 26363.  Clear? yes
+
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Inode 2 ref count is 9, should be 8.  Fix? yes
+
+Inode 13201 ref count is 1, should be 2.  Fix? yes
+
+Inode 19763 ref count is 65535, should be 2.  Fix? yes
+
+Directory exceeds max links, but no DIR_NLINK feature in superblock.
+Fix? yes
+
+Inode 32963 ref count is 65000, should be 2.  Fix? yes
+
+Pass 5: Checking group summary information
+Block bitmap differences:  -73383
+Fix? yes
+
+Free blocks count wrong for group #8 (0, counted=1).
+Fix? yes
+
+Free blocks count wrong (5388, counted=5389).
+Fix? yes
+
+Inode bitmap differences:  -26363
+Fix? yes
+
+Free inodes count wrong for group #3 (37, counted=38).
+Fix? yes
+
+Directories count wrong for group #3 (6563, counted=6562).
+Fix? yes
+
+Free inodes count wrong (382, counted=383).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 65617/66000 files (0.0% non-contiguous), 76531/81920 blocks
+Exit status is 1
diff --git a/tests/f_many_subdirs/expect.2 b/tests/f_many_subdirs/expect.2
new file mode 100644 (file)
index 0000000..bb0d829
--- /dev/null
@@ -0,0 +1,7 @@
+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
+test_filesys: 65617/66000 files (0.0% non-contiguous), 76531/81920 blocks
+Exit status is 0
diff --git a/tests/f_many_subdirs/image.gz b/tests/f_many_subdirs/image.gz
new file mode 100644 (file)
index 0000000..7f60fff
Binary files /dev/null and b/tests/f_many_subdirs/image.gz differ
diff --git a/tests/f_many_subdirs/name b/tests/f_many_subdirs/name
new file mode 100644 (file)
index 0000000..6264a60
--- /dev/null
@@ -0,0 +1 @@
+directory with more than 65000 sub-directories