btrfs-progs/tests/fsck-tests
Johannes Thumshirn e388bf386b btrfs-progs: check: warn users about the possible dangers of --repair
The manual page of btrfsck clearly states 'btrfs check --repair' is a
dangerous operation.

Although this warning is in place users do not read the manual page
and/or are used to the behaviour of fsck utilities which repair the
filesystem, and thus potentially cause harm.

Similar to 'btrfs balance' without any filters, add a warning and a
countdown, so users can bail out before eventual corrupting the
filesystem more than it already is.

To override the timeout, let --force skip it and continue.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
2019-11-22 19:07:20 +01:00
..
001-bad-file-extent-bytenr btrfs-progs: fsck-test: enable lowmem repair for case 001 2019-04-16 09:04:25 +08:00
002-bad-transid
003-shift-offsets
004-no-dir-index
005-bad-item-offset
006-bad-root-items btrfs-progs: tests: switch messages to _log 2019-07-26 17:46:42 +02:00
007-bad-offset-snapshots
008-bad-dir-index-name
009-no-dir-item-or-index
010-no-rootdir-inode-item
011-no-inode-item
012-leaf-corruption btrfs-progs: tests: switch messages to _log 2019-07-26 17:46:42 +02:00
013-extent-tree-rebuild btrfs-progs: check: warn users about the possible dangers of --repair 2019-11-22 19:07:20 +01:00
014-no-extent-info
016-wrong-inode-nbytes
017-missing-all-file-extent
018-leaf-crossing-stripes
019-non-skinny-false-alert
020-extent-ref-cases btrfs-progs: fsck-tests: Move reloc tree images to 020-extent-ref-cases 2018-12-05 15:46:28 +01:00
021-partially-dropped-snapshot-case
022-qgroup-rescan-halfway
023-qgroup-stack-overflow
024-clear-space-cache btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
025-file-extents btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
026-bad-dir-item-name btrfs-progs: tests: check: Make 026-bad-dir-item-name verify if btrfs-check can also repair 2019-01-15 18:42:13 +01:00
027-bad-extent-inline-ref-type
028-unaligned-super-dev-sizes
029-valid-orphan-item
030-reflinked-prealloc-extents
031-metadatadump-check-data-csum btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
032-corrupted-qgroup btrfs-progs: check: warn users about the possible dangers of --repair 2019-11-22 19:07:20 +01:00
033-lowmem-collission-dir-items btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
034-bad-inode-flags
035-inline-bad-ram-bytes btrfs-progs: fsck-tests: Add test case for corrupted inline ram_bytes 2018-08-06 15:01:16 +02:00
036-bad-dev-extents btrfs-progs: tests: Add test image for dev extents beyond device boundary 2019-01-15 18:42:13 +01:00
036-rescan-not-kicked-in btrfs-progs: tests: fix typos in test comments 2018-11-26 17:53:43 +01:00
037-freespacetree-repair btrfs-progs: tests: switch messages to _log 2019-07-26 17:46:42 +02:00
038-missing-one-file-extent btrfs-progs: tests: add case for inode lose one file extent 2019-04-16 09:04:25 +08:00
039-bad-inode-mode btrfs-progs: tests: Add new images for inode mode repair functionality 2019-11-18 19:21:07 +01:00
040-compressed-nodatasum btrfs-progs: tests: detecting compressed extent without csum 2019-05-17 12:32:38 +02:00
041-invalid-root-generation btrfs-progs: fsck-tests: Add test case for invalid root generation 2019-09-04 16:06:55 +02:00
042-half-dropped-inode btrfs-progs: fsck-tests: Add test image for valid half-dropped orphan inode 2019-09-04 16:08:58 +02:00
043-bad-inode-generation btrfs-progs: test: tests: Add test image for invalid inode generation repair 2019-11-18 19:21:07 +01:00