btrfs-progs: add safety delay before starting full balance
authorDavid Sterba <dsterba@suse.com>
Mon, 2 May 2016 08:26:29 +0000 (10:26 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 2 May 2016 12:44:56 +0000 (14:44 +0200)
commitc54b5a545efd2c7076e1fa8863b3ec4f00cdb216
treecca99c332cc94f581eec945d6f4b4d1ef51180bd
parentaeda5acb4f25d89e5bf60bf728b82b9f583c9833
btrfs-progs: add safety delay before starting full balance

A short delay with a warning before starting a full balance should
improve usability. We have been getting reports from people who run full
balance after following some random advice and then get surprised by the
performance impact.

The countdown is done even when run from scripts, but as the whole
balance takes significanly more time, this shouldn't be an issue.

Signed-off-by: David Sterba <dsterba@suse.com>
Documentation/btrfs-balance.asciidoc
cmds-balance.c