Whamcloud - gitweb
tests: verify large xattr inode support
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 13 Apr 2012 08:14:16 +0000 (02:14 -0600)
committerLi Dongyang <dongyangli@ddn.com>
Fri, 28 Apr 2023 01:21:35 +0000 (11:21 +1000)
Verify that inodes with large EAs in a secondary inode are working:
* EA inode needs to have EA_INODE_FL set
* EA inode should reference parent inode number+generation

Signed-off-by: Kalpak Shah <kalpak@sun.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
tests/f_large_ea/expect.1 [new file with mode: 0644]
tests/f_large_ea/expect.2 [new file with mode: 0644]
tests/f_large_ea/image.gz [new file with mode: 0644]
tests/f_large_ea/name [new file with mode: 0644]

diff --git a/tests/f_large_ea/expect.1 b/tests/f_large_ea/expect.1
new file mode 100644 (file)
index 0000000..47b6c2b
--- /dev/null
@@ -0,0 +1,48 @@
+Pass 1: Checking inodes, blocks, and sizes
+Inode 12 has illegal extended attribute value inode 79.
+Clear? yes
+
+Inode 12, i_blocks is 2, should be 0.  Fix? yes
+
+Extended attribute in inode 13 has a hash (2037685388) which is invalid
+Clear? yes
+
+Inode 13, i_blocks is 2, should be 0.  Fix? yes
+
+Inode 14 has illegal extended attribute value inode 20.
+Clear? yes
+
+Inode 14, i_blocks is 2, should be 0.  Fix? yes
+
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Unattached inode 16
+Connect to /lost+found? yes
+
+Inode 16 ref count is 2, should be 1.  Fix? yes
+
+Unattached inode 17
+Connect to /lost+found? yes
+
+Inode 17 ref count is 2, should be 1.  Fix? yes
+
+Unattached inode 18
+Connect to /lost+found? yes
+
+Inode 18 ref count is 2, should be 1.  Fix? yes
+
+Pass 5: Checking group summary information
+Block bitmap differences:  -1160 -1210 -1260
+Fix? yes
+
+Free blocks count wrong for group #0 (6821, counted=6824).
+Fix? yes
+
+Free blocks count wrong (6821, counted=6824).
+Fix? yes
+
+
+test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 20/256 files (20.0% non-contiguous), 1368/8192 blocks
+Exit status is 1
diff --git a/tests/f_large_ea/expect.2 b/tests/f_large_ea/expect.2
new file mode 100644 (file)
index 0000000..766411b
--- /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: 20/256 files (20.0% non-contiguous), 1368/8192 blocks
+Exit status is 0
diff --git a/tests/f_large_ea/image.gz b/tests/f_large_ea/image.gz
new file mode 100644 (file)
index 0000000..0162113
Binary files /dev/null and b/tests/f_large_ea/image.gz differ
diff --git a/tests/f_large_ea/name b/tests/f_large_ea/name
new file mode 100644 (file)
index 0000000..9d45f60
--- /dev/null
@@ -0,0 +1 @@
+large EAs