]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: add support for true/false & yes/no in bool-type options
authorIntegral <integral@murena.io>
Wed, 23 Oct 2024 10:00:33 +0000 (18:00 +0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:17 +0000 (01:36 -0500)
commit394033dcc976d1f83f0fc6e7d4dd041ce376d245
treeca659bbdde87d9701246a42c9e88c96c980c0035
parente5ea05293a2ba181cdd04cd075b0483f11868f8f
bcachefs: add support for true/false & yes/no in bool-type options

Here is the patch which uses existing constant table:

Currently, when using bcachefs-tools to set options, bool-type options
can only accept 1 or 0. Add support for accepting true/false and yes/no
for these options.

Signed-off-by: Integral <integral@murena.io>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Acked-by: David Howells <dhowells@redhat.com>
fs/bcachefs/opts.c
fs/fs_parser.c
include/linux/fs_parser.h