diff options
author | Theodore Ts'o <tytso@mit.edu> | 2005-01-27 14:28:41 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2005-01-27 14:28:41 -0500 |
commit | 6c313fd4732adbb83d6f9c402300487b6a7e84bb (patch) | |
tree | b77732949d35a1d6942b9947a55ac6913c78561c /tests | |
parent | 06a6cbd2c8d927760c1dcf0990c6ea5bf831dcee (diff) | |
download | e2fsprogs-6c313fd4732adbb83d6f9c402300487b6a7e84bb.tar.gz |
Fix e2fsck to not delete symlinks that contain an extended attribute after
the ext_attr feature flag has been cleared. (Addresses Red Hat Bugzilla
#146284)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ChangeLog | 4 | ||||
-rw-r--r-- | tests/f_clear_xattr/expect.1 | 38 | ||||
-rw-r--r-- | tests/f_clear_xattr/expect.2 | 7 | ||||
-rw-r--r-- | tests/f_clear_xattr/image.gz | bin | 0 -> 1082 bytes | |||
-rw-r--r-- | tests/f_clear_xattr/name | 1 |
5 files changed, 50 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog index c705a646..c4799761 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2005-01-27 Theodore Ts'o <tytso@mit.edu> + + * f_clear_xattr: New test case + 2005-01-25 Theodore Ts'o <tytso@mit.edu> * f_summary_counts: New test case diff --git a/tests/f_clear_xattr/expect.1 b/tests/f_clear_xattr/expect.1 new file mode 100644 index 00000000..5cfbeafa --- /dev/null +++ b/tests/f_clear_xattr/expect.1 @@ -0,0 +1,38 @@ +Pass 1: Checking inodes, blocks, and sizes +Inode 14, i_blocks is 2, should be 0. Fix? yes + +Inode 12, i_blocks is 4, should be 2. Fix? yes + +Inode 13, i_blocks is 2, should be 0. Fix? yes + +Inode 15, i_blocks is 4, should be 2. Fix? yes + +Pass 2: Checking directory structure +i_file_acl for inode 12 (/dir) is 22, should be zero. +Clear? yes + +i_file_acl for inode 13 (/file) is 22, should be zero. +Clear? yes + +i_file_acl for inode 14 (/symlink) is 22, should be zero. +Clear? yes + +i_file_acl for inode 15 (/long-symlink) is 23, should be zero. +Clear? yes + +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +Block bitmap differences: -(22--23) +Fix? yes + +Free blocks count wrong for group #0 (76, counted=78). +Fix? yes + +Free blocks count wrong (76, counted=78). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 15/16 files (0.0% non-contiguous), 22/100 blocks +Exit status is 1 diff --git a/tests/f_clear_xattr/expect.2 b/tests/f_clear_xattr/expect.2 new file mode 100644 index 00000000..306d2678 --- /dev/null +++ b/tests/f_clear_xattr/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: 15/16 files (0.0% non-contiguous), 22/100 blocks +Exit status is 0 diff --git a/tests/f_clear_xattr/image.gz b/tests/f_clear_xattr/image.gz Binary files differnew file mode 100644 index 00000000..99aca14b --- /dev/null +++ b/tests/f_clear_xattr/image.gz diff --git a/tests/f_clear_xattr/name b/tests/f_clear_xattr/name new file mode 100644 index 00000000..2ead6902 --- /dev/null +++ b/tests/f_clear_xattr/name @@ -0,0 +1 @@ +clearing i_file_acl when !ext_attr feature |