diff mbox series

[v3,5/8] btrfs: show rescue=usebackuproot in /proc/mounts

Message ID 64b9c0fc1b1bdf7bbf8630ffa31f3f296e63ccf3.1602273837.git.josef@toxicpanda.com (mailing list archive)
State New, archived
Headers show
Series New rescue mount options | expand

Commit Message

Josef Bacik Oct. 9, 2020, 8:07 p.m. UTC
This got missed somehow, so add it in.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
 fs/btrfs/super.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Qu Wenruo Oct. 10, 2020, 12:35 a.m. UTC | #1
On 2020/10/10 上午4:07, Josef Bacik wrote:
> This got missed somehow, so add it in.
> 
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>

It would be better to fold this commit into previous one.

Thanks,
Qu

> ---
>  fs/btrfs/super.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
> index be56fe15cd74..833b7eb91536 100644
> --- a/fs/btrfs/super.c
> +++ b/fs/btrfs/super.c
> @@ -1436,6 +1436,7 @@ static int btrfs_show_options(struct seq_file *seq, struct dentry *dentry)
>  	if (btrfs_test_opt(info, NOTREELOG))
>  		seq_puts(seq, ",notreelog");
>  	print_rescue_option(NOLOGREPLAY, "nologreplay");
> +	print_rescue_option(USEBACKUPROOT, "usebackuproot");
>  	if (btrfs_test_opt(info, FLUSHONCOMMIT))
>  		seq_puts(seq, ",flushoncommit");
>  	if (btrfs_test_opt(info, DISCARD_SYNC))
>
diff mbox series

Patch

diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index be56fe15cd74..833b7eb91536 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -1436,6 +1436,7 @@  static int btrfs_show_options(struct seq_file *seq, struct dentry *dentry)
 	if (btrfs_test_opt(info, NOTREELOG))
 		seq_puts(seq, ",notreelog");
 	print_rescue_option(NOLOGREPLAY, "nologreplay");
+	print_rescue_option(USEBACKUPROOT, "usebackuproot");
 	if (btrfs_test_opt(info, FLUSHONCOMMIT))
 		seq_puts(seq, ",flushoncommit");
 	if (btrfs_test_opt(info, DISCARD_SYNC))