mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2025-01-26 18:33:24 +08:00
tests: add two more tests of orphaned inode handling
Add two tests, f_orphan_indirect_inode, and f_orphan_extents_inode, which tests the bug fixes in the two previous commits: e2fsck: update global free blocks/inodes count when truncating orphan inodes libext2fs: fix block iterator for extents when truncating inodes Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
beb388a473
commit
e130a16e83
10
tests/f_orphan_extents_inode/expect.1
Normal file
10
tests/f_orphan_extents_inode/expect.1
Normal file
@ -0,0 +1,10 @@
|
||||
Truncating orphaned inode 12 (uid=0, gid=0, mode=0100644, size=0)
|
||||
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/16 files (0.0% non-contiguous), 21/100 blocks
|
||||
Exit status is 1
|
7
tests/f_orphan_extents_inode/expect.2
Normal file
7
tests/f_orphan_extents_inode/expect.2
Normal file
@ -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/16 files (0.0% non-contiguous), 21/100 blocks
|
||||
Exit status is 0
|
BIN
tests/f_orphan_extents_inode/image.gz
Normal file
BIN
tests/f_orphan_extents_inode/image.gz
Normal file
Binary file not shown.
1
tests/f_orphan_extents_inode/name
Normal file
1
tests/f_orphan_extents_inode/name
Normal file
@ -0,0 +1 @@
|
||||
truncating an orphaned extent-mapped inode
|
2
tests/f_orphan_indirect_inode/expect.1
Normal file
2
tests/f_orphan_indirect_inode/expect.1
Normal file
@ -0,0 +1,2 @@
|
||||
test_filesys: clean, 12/16 files, 21/100 blocks
|
||||
Exit status is 0
|
7
tests/f_orphan_indirect_inode/expect.2
Normal file
7
tests/f_orphan_indirect_inode/expect.2
Normal file
@ -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/16 files (0.0% non-contiguous), 21/100 blocks
|
||||
Exit status is 0
|
BIN
tests/f_orphan_indirect_inode/image.gz
Normal file
BIN
tests/f_orphan_indirect_inode/image.gz
Normal file
Binary file not shown.
1
tests/f_orphan_indirect_inode/name
Normal file
1
tests/f_orphan_indirect_inode/name
Normal file
@ -0,0 +1 @@
|
||||
truncating an orphaned inode in preen mode
|
2
tests/f_orphan_indirect_inode/script
Normal file
2
tests/f_orphan_indirect_inode/script
Normal file
@ -0,0 +1,2 @@
|
||||
FSCK_OPT=-p
|
||||
. $cmd_dir/run_e2fsck
|
Loading…
Reference in New Issue
Block a user