diff options
Diffstat (limited to 'tests/t_dangerous/expect')
-rw-r--r-- | tests/t_dangerous/expect | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/tests/t_dangerous/expect b/tests/t_dangerous/expect new file mode 100644 index 0000000..31aaf4f --- /dev/null +++ b/tests/t_dangerous/expect @@ -0,0 +1,120 @@ +tune2fs dangerous prompts test +Creating filesystem with 524288 1k blocks and 65536 inodes +Superblock backups stored on blocks: + 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 + +Allocating group tables: done +Writing inode tables: done +Creating journal (16384 blocks): done +Creating 445 huge file(s) with 1024 blocks each: done +Writing superblocks and filesystem accounting information: done + +tune2fs -O metadata_csum test.img + +This operation requires a freshly checked filesystem. + +Please run e2fsck -f on the filesystem. + +Exit status is 1 +tune2fs -O metadata_csum test.img +Exit status is 0 +Creating filesystem with 524288 1k blocks and 65536 inodes +Superblock backups stored on blocks: + 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 + +Allocating group tables: done +Writing inode tables: done +Creating journal (16384 blocks): done +Creating 445 huge file(s) with 1024 blocks each: done +Writing superblocks and filesystem accounting information: done + +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 + +Exit status is 0 +tune2fs -O metadata_csum test.img +Enabling checksums could take some time. +Proceed anyway (or wait 5 seconds to proceed) ? (y,N) +Exit status is 1 +tune2fs -I 512 test.img +Resizing inodes could take some time. +Proceed anyway (or wait 5 seconds to proceed) ? (y,N) +Exit status is 1 + +Change in FS metadata: +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 + +Exit status is 0 +tune2fs -O metadata_csum test.img +Enabling checksums could take some time. +Proceed anyway (or wait 5 seconds to proceed) ? (y,N) +This operation requires a freshly checked filesystem. + +Please run e2fsck -fD on the filesystem. + +Exit status is 0 +test_filesys was not cleanly unmounted, check forced. +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 3A: Optimizing directories +Pass 4: Checking reference counts +Pass 5: Checking group summary information + + + +tune2fs -I 512 test.img +Resizing inodes could take some time. +Proceed anyway (or wait 5 seconds to proceed) ? (y,N) Setting inode size 512 +Exit status is 0 +tune2fs -U f0f0f0f0-f0f0-f0f0-f0f0-f0f0f0f0f0f0 test.img +Setting the UUID on this filesystem could take some time. +Proceed anyway (or wait 5 seconds to proceed) ? (y,N) Exit status is 0 +Backing up journal inode block information. + + +Change in FS metadata: +@@ -1,3 +1,3 @@ +-Filesystem UUID: 6fc3daa4-180d-4f2b-a6f2-f7a5efb79bcf +-Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent 64bit sparse_super large_file huge_file uninit_bg dir_nlink extra_isize +-Inode size: 256 ++Filesystem UUID: f0f0f0f0-f0f0-f0f0-f0f0-f0f0f0f0f0f0 ++Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent 64bit sparse_super large_file huge_file dir_nlink extra_isize metadata_csum ++Inode size: 512 +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 + +Exit status is 0 + +Testing with metadata checksum enabled +Creating filesystem with 524288 1k blocks and 65536 inodes +Superblock backups stored on blocks: + 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409 + +Allocating group tables: done +Writing inode tables: done +Creating journal (16384 blocks): done +Creating 445 huge file(s) with 1024 blocks each: done +Writing superblocks and filesystem accounting information: done + +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 + +Exit status is 0 +tune2fs -U random test.img +Setting the UUID on this filesystem could take some time. +Proceed anyway (or wait 5 seconds to proceed) ? (y,N) +Exit status is 1 |