diff options
author | Josef Bacik <josef@toxicpanda.com> | 2020-10-16 18:29:20 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-12-08 17:53:42 +0300 |
commit | 9037d3cbcbe1ed9c409efe4d6d3efd893d7ff05e (patch) | |
tree | b04dbe9229110a25d82a83b5099e60b590b94afb /fs/btrfs/sysfs.c | |
parent | 882dbe0cec9651bf6a6df500178149453726c1e1 (diff) | |
download | linux-9037d3cbcbe1ed9c409efe4d6d3efd893d7ff05e.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r-- | fs/btrfs/sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index 86f70a60447b..fcd6c7a9bbd1 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -334,6 +334,7 @@ static const char *rescue_opts[] = { "nologreplay", "ignorebadroots", "ignoredatacsums", + "all", }; static ssize_t supported_rescue_options_show(struct kobject *kobj, |