diff options
author | Thomas Bertschinger <tahbertschinger@gmail.com> | 2024-05-26 13:08:19 -0600 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-06-23 12:57:13 -0400 |
commit | 87c521d09c085b66e9a45f60bd60c3bab380a46e (patch) | |
tree | dd4fb77e4f10c4485e4c06f410b9f123e0851ea8 /fs/filesystems.c | |
parent | 15d1ac22282952e765722c158481c24ccef61525 (diff) |
bcachefs: make offline fsck set read_only fs flag
A subsequent change will remove "read_only" as a mount option in favor
of the standard option "ro", meaning the userspace fsck command cannot
pass it to the fsck ioctl. Instead, in offline fsck, set "read_only"
kernel-side without trying to parse it as a mount option.
For compatibility with versions of the "bcachefs fsck" command that try
to pass the "read_only" mount opt, remove it from the mount options
string prior to parsing when it is present.
Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/filesystems.c')
0 files changed, 0 insertions, 0 deletions