diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-23 17:50:29 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-05 23:24:19 -0500 |
commit | 62719cf33c3ad62986130a19496cd864a0ed06c3 (patch) | |
tree | f82ecd9d2029d76f9a862302d6abd0a650aa482c /fs/bcachefs/opts.h | |
parent | 5e329145148d7e9fe5a07ecfc08682ef7334a4d1 (diff) | |
download | linux-stable-62719cf33c3ad62986130a19496cd864a0ed06c3.tar.gz linux-stable-62719cf33c3ad62986130a19496cd864a0ed06c3.tar.bz2 linux-stable-62719cf33c3ad62986130a19496cd864a0ed06c3.zip |
bcachefs: Fix nochanges/read_only interaction
nochanges means "we cannot issue writes at all"; it's possible to go
into a pseudo read-write mode where we pin dirty metadata in memory,
which is used for fsck in dry run mode and doing journal replay on a
read only mount, but we do not want to allow an actual read-write mount
in nochanges mode.
But we do always want to allow early read-write, during recovery - this
patch clarifies that.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/opts.h')
-rw-r--r-- | fs/bcachefs/opts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/opts.h b/fs/bcachefs/opts.h index cf69b92cbd03..42cad83efb48 100644 --- a/fs/bcachefs/opts.h +++ b/fs/bcachefs/opts.h @@ -389,7 +389,7 @@ enum fsck_err_opts { BCH2_NO_SB_OPT, BCH_SB_SECTOR, \ "offset", "Sector offset of superblock") \ x(read_only, u8, \ - OPT_FS, \ + OPT_FS|OPT_MOUNT, \ OPT_BOOL(), \ BCH2_NO_SB_OPT, false, \ NULL, NULL) \ |