]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsprogs-tests-f_expisize_ea_del.patch
authorTheodore Ts'o <tytso@mit.edu>
Sat, 2 Feb 2008 08:40:03 +0000 (01:40 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 11 Feb 2008 03:27:42 +0000 (22:27 -0500)
Test case for expanding inode size where there is not enough room
for the requested new inode size.  Prompt user to delete one or more
EAs (default is to abort).

Signed-off-by: Andreas Dilger <adilger@clusterfs.com>
tests/f_expisize_ea_del/expect.1 [new file with mode: 0644]
tests/f_expisize_ea_del/expect.2 [new file with mode: 0644]
tests/f_expisize_ea_del/image.gz [new file with mode: 0644]
tests/f_expisize_ea_del/name [new file with mode: 0644]
tests/f_expisize_ea_del/script [new file with mode: 0644]

diff --git a/tests/f_expisize_ea_del/expect.1 b/tests/f_expisize_ea_del/expect.1
new file mode 100644 (file)
index 0000000..249e27d
--- /dev/null
@@ -0,0 +1,10 @@
+Adding dirhash hint to filesystem.
+
+Pass 1: Checking inodes, blocks, and sizes
+Expanding inode 12.
+An EA needs to be deleted for inode 12 but e2fsck is being run
+with -p or -y mode.
+Abort? yes
+
+e2fsck: aborted
+Exit status is 8
diff --git a/tests/f_expisize_ea_del/expect.2 b/tests/f_expisize_ea_del/expect.2
new file mode 100644 (file)
index 0000000..c49b85b
--- /dev/null
@@ -0,0 +1,11 @@
+Adding dirhash hint to filesystem.
+
+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: ***** FILE SYSTEM WAS MODIFIED *****
+test_filesys: 12/2048 files (8.3% non-contiguous), 2106/8192 blocks
+Exit status is 1
diff --git a/tests/f_expisize_ea_del/image.gz b/tests/f_expisize_ea_del/image.gz
new file mode 100644 (file)
index 0000000..1739f3d
Binary files /dev/null and b/tests/f_expisize_ea_del/image.gz differ
diff --git a/tests/f_expisize_ea_del/name b/tests/f_expisize_ea_del/name
new file mode 100644 (file)
index 0000000..47de502
--- /dev/null
@@ -0,0 +1 @@
+EA needs deletion but running in -p or -y mode
diff --git a/tests/f_expisize_ea_del/script b/tests/f_expisize_ea_del/script
new file mode 100644 (file)
index 0000000..fb26ca9
--- /dev/null
@@ -0,0 +1,4 @@
+FSCK_OPT="-fy -E expand_extra_isize"
+SECOND_FSCK_OPT=-yf
+
+. $cmd_dir/run_e2fsck