@@ -6427,6 +6427,15 @@ int cmd_check(int argc, char **argv)
if (argc != 1)
usage(cmd_check_usage);
+ if (repair != 0) {
+ printf("\nWARNING: you enabled repair mode, this option could make "
+ "matters worse for your data. It is recommended to check with the "
+ "linux-btrfs@vger.kernel.org mailing list before you proceed.\n");
+ printf("Sleeping for 10 seconds to give you time to consider..."
+ " hit ctrl+c if you changed your mind.\n");
+ sleep(10);
+ }
+
radix_tree_init();
cache_tree_init(&root_cache);