Whamcloud - gitweb
tests: add new test f_quota_extent_opt
authorTheodore Ts'o <tytso@mit.edu>
Sat, 15 Apr 2017 04:59:11 +0000 (00:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Apr 2017 07:33:47 +0000 (03:33 -0400)
Add a test to validate the changes in commit 403bcb668e4f: "e2fsck:
update quota when optimizing the extent tree".

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_quota_extent_opt/expect.1 [new file with mode: 0644]
tests/f_quota_extent_opt/expect.2 [new file with mode: 0644]
tests/f_quota_extent_opt/image.gz [new file with mode: 0644]
tests/f_quota_extent_opt/name [new file with mode: 0644]

diff --git a/tests/f_quota_extent_opt/expect.1 b/tests/f_quota_extent_opt/expect.1
new file mode 100644 (file)
index 0000000..1b96621
--- /dev/null
@@ -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 (file)
index 0000000..0bd4632
--- /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: 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 (file)
index 0000000..21dcfbd
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 (file)
index 0000000..8c5d7a9
--- /dev/null
@@ -0,0 +1 @@
+extent optimization with quota