OSDN Git Service

btrfs: introduce mount option rescue=all
authorJosef Bacik <josef@toxicpanda.com>
Fri, 16 Oct 2020 15:29:20 +0000 (11:29 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:42 +0000 (15:53 +0100)
commit9037d3cbcbe1ed9c409efe4d6d3efd893d7ff05e
treeb04dbe9229110a25d82a83b5099e60b590b94afb
parent882dbe0cec9651bf6a6df500178149453726c1e1
btrfs: introduce mount option rescue=all

Now that we have the building blocks for some better recovery options
with corrupted file systems, add a rescue=all option to enable all of
the relevant rescue options.  This will allow distros to simply default
to rescue=all for the "oh dear lord the world's on fire" recovery
without needing to know all the different options that we have and may
add in the future.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c
fs/btrfs/sysfs.c