btrfs-progs: add always option to restore's looping prompt
authorJustin Maggard <jmaggard10@gmail.com>
Tue, 29 Jul 2014 01:55:09 +0000 (18:55 -0700)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 13:07:03 +0000 (15:07 +0200)
commit2ac5cdf79f5ffb4f9e6c50cd56ab0abca257a390
tree87f1c32815ab098dc781eb1edd284f576bf2ddc9
parent84ebfa6d88fb9bfe10b26be03cf4982973b4fa17
btrfs-progs: add always option to restore's looping prompt

If you are using btrfs restore to try to recover a very large or
fragmented file, you may encounter _lots_ of prompts requiring
you to press 'y' to continue because we are looping a lot.

Add the option to press 'a', to supress these prompts for the rest
of the file.

Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-restore.c