Whamcloud - gitweb
tests: verify large xattr inode support
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 13 Apr 2012 08:14:16 +0000 (02:14 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 29 May 2012 08:09:26 +0000 (02:09 -0600)
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 <adilger@whamcloud.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..31f7e8e
--- /dev/null
@@ -0,0 +1,27 @@
+Pass 1: Checking inodes, blocks, and sizes
+Inode 12 has invalid extended attribute. EA inode 79 missing EA_INODE flag.
+Clear? yes
+
+Invalid backpointer from extended attribute inode 19 to parent inode 13.
+Clear? yes
+
+Inode 14 has invalid extended attribute. EA inode 20 missing EA_INODE flag.
+Clear? yes
+
+Pass 2: Checking directory structure
+Pass 3: Checking directory connectivity
+Pass 4: Checking reference counts
+Unattached inode 16
+Connect to /lost+found? yes
+
+Unattached inode 17
+Connect to /lost+found? yes
+
+Unattached inode 18
+Connect to /lost+found? yes
+
+Pass 5: Checking group summary information
+
+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