btrfs-progs/tests/cli-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-btrfs btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests 2018-02-13 15:41:32 +01:00
002-balance-full-no-filters btrfs-progs: balance: check for full-balance before background fork 2019-09-04 16:06:42 +02:00
003-fi-resize-args btrfs-progs: tests: cli/003: add resize checks with 'max' 2019-09-04 16:08:46 +02:00
004-send-parent-multi-subvol btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
005-qgroup-show btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
006-qgroup-show-sync btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
007-check-force btrfs-progs: check: warn users about the possible dangers of --repair 2019-11-22 19:07:20 +01:00
008-subvolume-get-set-default btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
009-btrfstune btrfs-progs: switch to mkfs helper 2019-06-05 20:27:32 +02:00
010-subvol-show-qgroup btrfs-progs: tests: simple test for subvol show output 2019-07-03 13:31:15 +02:00
011-defrag-recursion btrfs-progs: test: add simple test for defrag recursion depth 2019-07-04 02:06:35 +02:00
012-defrag-recursion btrfs-progs: test: add simple test for 'fi du' recursion depth 2019-07-04 02:06:35 +02:00