diff options
| author | Hongbo Li <lihongbo22@huawei.com> | 2024-10-10 12:01:48 +0800 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-18 00:49:48 -0400 |
| commit | 489ecc4cfddada303bd9c2b287a3c8744c324ed3 (patch) | |
| tree | b68ddb1149abce7289aa61fb2ca950d53b079794 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | bcachefs: fix incorrect show_options results (diff) | |
| download | linux-489ecc4cfddada303bd9c2b287a3c8744c324ed3.tar.gz linux-489ecc4cfddada303bd9c2b287a3c8744c324ed3.zip | |
bcachefs: skip mount option handle for empty string.
The options parse in get_tree will split the options buffer, it will
get the empty string for last one by strsep(). After commit
ea0eeb89b1d5 ("bcachefs: reject unknown mount options") is merged,
unknown mount options is not allowed (here is empty string), and this
causes this errors. This can be reproduced just by the following steps:
bcachefs format /dev/loop
mount -t bcachefs -o metadata_target=loop1 /dev/loop1 /mnt/bcachefs/
Fixes: ea0eeb89b1d5 ("bcachefs: reject unknown mount options")
Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
