On Thu, Sep 26, 2024 at 10:00:01AM GMT, Hongbo Li wrote:
> When call show_options in bcachefs, the options buffer is appeneded
> to the seq variable. In fact, it requires an additional comma to be
> appended first. This will affect the remount process when reading
> existing mount options.
> 
> Fixes: 9305cf91d05e ("bcachefs: bch2_opts_to_text()")
> Signed-off-by: Hongbo Li <[email protected]>

Applied!

> ---
>  fs/bcachefs/fs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c
> index d6e26b5056f3..b42c293f71f8 100644
> --- a/fs/bcachefs/fs.c
> +++ b/fs/bcachefs/fs.c
> @@ -1931,7 +1931,7 @@ static int bch2_show_options(struct seq_file *seq, 
> struct dentry *root)
>       if (buf.allocation_failure)
>               ret = -ENOMEM;
>       else
> -             seq_puts(seq, buf.buf);
> +             seq_printf(seq, ",%s", buf.buf);
>  
>       printbuf_exit(&buf);
>       return ret;
> -- 
> 2.34.1
> 

Reply via email to