From: Theodore Ts'o Date: Sat, 15 Apr 2017 04:59:11 +0000 (-0400) Subject: tests: add new test f_quota_extent_opt X-Git-Tag: v1.43.5~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f91b451c26802e3801ecdf4d0d2fbe81151f523b;p=thirdparty%2Fe2fsprogs.git tests: add new test f_quota_extent_opt Add a test to validate the changes in commit 403bcb668e4f: "e2fsck: update quota when optimizing the extent tree". Signed-off-by: Theodore Ts'o --- diff --git a/tests/f_quota_extent_opt/expect.1 b/tests/f_quota_extent_opt/expect.1 new file mode 100644 index 000000000..1b966213a --- /dev/null +++ b/tests/f_quota_extent_opt/expect.1 @@ -0,0 +1,15 @@ +Pass 1: Checking inodes, blocks, and sizes +Inode 12 extent tree (at level 1) could be narrower. Fix? yes + +Pass 1E: Optimizing extent trees +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +[QUOTA WARNING] Usage inconsistent for ID 0:actual (147456, 3) != expected (148480, 3) +Update quota info for quota type 0? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 12/1024 files (25.0% non-contiguous), 1339/4096 blocks +Exit status is 1 diff --git a/tests/f_quota_extent_opt/expect.2 b/tests/f_quota_extent_opt/expect.2 new file mode 100644 index 000000000..0bd4632cf --- /dev/null +++ b/tests/f_quota_extent_opt/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: 12/1024 files (25.0% non-contiguous), 1339/4096 blocks +Exit status is 0 diff --git a/tests/f_quota_extent_opt/image.gz b/tests/f_quota_extent_opt/image.gz new file mode 100644 index 000000000..21dcfbdfe Binary files /dev/null and b/tests/f_quota_extent_opt/image.gz differ diff --git a/tests/f_quota_extent_opt/name b/tests/f_quota_extent_opt/name new file mode 100644 index 000000000..8c5d7a90d --- /dev/null +++ b/tests/f_quota_extent_opt/name @@ -0,0 +1 @@ +extent optimization with quota