]> www.infradead.org Git - users/willy/linux.git/commit
bcachefs: Add error code to defer option parsing
authorThomas Bertschinger <tahbertschinger@gmail.com>
Tue, 28 May 2024 04:36:10 +0000 (22:36 -0600)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:12 +0000 (19:00 -0400)
commit1c12d1caf8d627d8b791f4dc25af2522dac7cd10
tree7eb4fbbe2190aeb0a70333093d6d4c491d5cd1a8
parent9b7f0b5d3d220ccba3151b95a5532780e04e1954
bcachefs: Add error code to defer option parsing

This introduces a new error code, option_needs_open_fs, which is used to
indicate that an attempt was made to parse a mount option prior to
opening a filesystem, when that mount option requires an open filesystem
in order to be validated.

Returning this error results in bch2_parse_one_mount_opt() saving that
option for later parsing, after the filesystem is opened.

Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/disk_groups.c
fs/bcachefs/errcode.h
fs/bcachefs/opts.c