mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-23 18:14:25 +08:00
tests: e2fsck must be able fix fs with resize_inode and meta_bg
Test if the e2fsck can fix file system with resize_inode and meta_bg features enabled simultaneously. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
faae7aa00d
commit
99a0dffcd3
71
tests/f_resize_inode_meta_bg/expect.1
Normal file
71
tests/f_resize_inode_meta_bg/expect.1
Normal file
@ -0,0 +1,71 @@
|
||||
Resize_inode and meta_bg features are enabled. Those features are
|
||||
not compatible. Resize inode should be disabled. Fix? yes
|
||||
|
||||
Resize_inode not enabled, but the resize inode is non-zero. Clear? yes
|
||||
|
||||
Pass 1: Checking inodes, blocks, and sizes
|
||||
Pass 2: Checking directory structure
|
||||
Directory inode 2, block #0, offset 0: directory has no checksum.
|
||||
Fix? yes
|
||||
|
||||
First entry '' (inode=348) in directory inode 2 (???) should be '.'
|
||||
Fix? yes
|
||||
|
||||
Setting filetype for entry '.' in ??? (2) to 2.
|
||||
Missing '..' in directory inode 2.
|
||||
Fix? yes
|
||||
|
||||
Setting filetype for entry '..' in ??? (2) to 2.
|
||||
Directory inode 2, block #0, offset 860: directory corrupted
|
||||
Salvage? yes
|
||||
|
||||
Directory inode 11, block #0, offset 0: directory corrupted
|
||||
Salvage? yes
|
||||
|
||||
Missing '.' in directory inode 11.
|
||||
Fix? yes
|
||||
|
||||
Setting filetype for entry '.' in ??? (11) to 2.
|
||||
Missing '..' in directory inode 11.
|
||||
Fix? yes
|
||||
|
||||
Setting filetype for entry '..' in ??? (11) to 2.
|
||||
Directory inode 11, block #1, offset 0: directory corrupted
|
||||
Salvage? yes
|
||||
|
||||
Directory inode 11, block #2, offset 0: directory corrupted
|
||||
Salvage? yes
|
||||
|
||||
Entry '' in ??? (11) has a zero-length name.
|
||||
Clear? yes
|
||||
|
||||
Directory inode 11, block #3, offset 864: directory corrupted
|
||||
Salvage? yes
|
||||
|
||||
Pass 3: Checking directory connectivity
|
||||
'..' in / (2) is <The NULL inode> (0), should be / (2).
|
||||
Fix? yes
|
||||
|
||||
Unconnected directory inode 11 (/???)
|
||||
Connect to /lost+found? yes
|
||||
|
||||
/lost+found not found. Create? yes
|
||||
|
||||
Pass 3A: Optimizing directories
|
||||
Pass 4: Checking reference counts
|
||||
Inode 11 ref count is 3, should be 2. Fix? yes
|
||||
|
||||
Pass 5: Checking group summary information
|
||||
Block bitmap differences: -246
|
||||
Fix? yes
|
||||
|
||||
Free blocks count wrong for group #0 (160, counted=161).
|
||||
Fix? yes
|
||||
|
||||
Free blocks count wrong (2714, counted=2715).
|
||||
Fix? yes
|
||||
|
||||
|
||||
test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
|
||||
test_filesys: 12/960 files (0.0% non-contiguous), 1125/3840 blocks
|
||||
Exit status is 1
|
7
tests/f_resize_inode_meta_bg/expect.2
Normal file
7
tests/f_resize_inode_meta_bg/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/960 files (0.0% non-contiguous), 1125/3840 blocks
|
||||
Exit status is 0
|
BIN
tests/f_resize_inode_meta_bg/image.gz
Normal file
BIN
tests/f_resize_inode_meta_bg/image.gz
Normal file
Binary file not shown.
1
tests/f_resize_inode_meta_bg/name
Normal file
1
tests/f_resize_inode_meta_bg/name
Normal file
@ -0,0 +1 @@
|
||||
conflicting features resize_inode and meta_bg
|
Loading…
Reference in New Issue
Block a user