From: Andreas Dilger Date: Thu, 12 Apr 2012 22:02:12 +0000 (-0600) Subject: tests: verify > 65000 subdirectories X-Git-Tag: v1.42.13.wc3~32 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ef6dad9c4f94812ccf34c96624670bb7a9534dc3;p=tools%2Fe2fsprogs.git tests: verify > 65000 subdirectories Add test case to verify nlink handling of large directories. Signed-off-by: Andreas Dilger --- diff --git a/tests/f_many_subdirs/expect.1 b/tests/f_many_subdirs/expect.1 new file mode 100644 index 0000000..04ab7a0 --- /dev/null +++ b/tests/f_many_subdirs/expect.1 @@ -0,0 +1,42 @@ +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 + +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 index 0000000..bb0d829 --- /dev/null +++ b/tests/f_many_subdirs/expect.2 @@ -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 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 index 0000000..6264a60 --- /dev/null +++ b/tests/f_many_subdirs/name @@ -0,0 +1 @@ +directory with more than 65000 sub-directories