OSDN Git Service

btrfs: add a helper to print out rescue= options
authorJosef Bacik <josef@toxicpanda.com>
Fri, 16 Oct 2020 15:29:16 +0000 (11:29 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:40 +0000 (15:53 +0100)
commitab0b4a3ebf145f54dc23b66a411f4bbbc59b0d96
tree4b9afc22b39d0ee8b8af7f1824f49bb7cec16d13
parentceafe3cc39923fc80b9091f3fd993e6de1b6a399
btrfs: add a helper to print out rescue= options

We're going to have a lot of rescue options, add a helper to collapse
the /proc/mounts output to rescue=option1:option2:option3 format.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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