]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: split error messages of invalid compression into two lines
authorIntegral <integral@archlinuxcn.org>
Sun, 6 Apr 2025 15:26:59 +0000 (23:26 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:08 +0000 (20:14 -0400)
commit84ccd47d265579dd23768e69b5204801ad6b5eca
tree712fc114d5bb21762ae38c768b8548703a46bd3d
parent0e790469bf3044022cb02025abdae775c9908ca8
bcachefs: split error messages of invalid compression into two lines

When an invalid compression type or level is passed as an argument
to `--compression`, two error messages are squashed into one line:

    > bcachefs format --compression=lzo bcachefs-comp.img
    invalid option: invalid compression typecompression: parse error

    > bcachefs format --compression=lz4:16 bcachefs-comp.img
    invalid option: invalid compression levelcompression: parse error

To resolve this issue, add a newline character at the end of the
first error message to separate them into two lines.

Signed-off-by: Integral <integral@archlinuxcn.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/compress.c