Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
02f1a96c
Commit
02f1a96c
authored
Nov 03, 2018
by
Kent Overstreet
Committed by
Kent Overstreet
Oct 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Rename nofsck opt to fsck
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
6bdbfa87
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
fs/bcachefs/fsck.c
fs/bcachefs/fsck.c
+1
-1
fs/bcachefs/opts.h
fs/bcachefs/opts.h
+2
-2
fs/bcachefs/recovery.c
fs/bcachefs/recovery.c
+1
-1
No files found.
fs/bcachefs/fsck.c
View file @
02f1a96c
...
...
@@ -1465,7 +1465,7 @@ static int bch2_fsck_walk_inodes_only(struct bch_fs *c)
int
bch2_fsck
(
struct
bch_fs
*
c
)
{
if
(
!
c
->
opts
.
no
fsck
)
if
(
c
->
opts
.
fsck
)
return
bch2_fsck_full
(
c
);
if
(
!
c
->
sb
.
clean
&&
...
...
fs/bcachefs/opts.h
View file @
02f1a96c
...
...
@@ -153,9 +153,9 @@ enum opt_type {
BCH_OPT(journal_flush_disabled, u8, OPT_RUNTIME, \
OPT_BOOL(), \
NO_SB_OPT, false) \
BCH_OPT(
no
fsck, u8, OPT_MOUNT, \
BCH_OPT(fsck, u8, OPT_MOUNT, \
OPT_BOOL(), \
NO_SB_OPT,
fals
e) \
NO_SB_OPT,
tru
e) \
BCH_OPT(fix_errors, u8, OPT_MOUNT, \
OPT_BOOL(), \
NO_SB_OPT, false) \
...
...
fs/bcachefs/recovery.c
View file @
02f1a96c
...
...
@@ -152,7 +152,7 @@ int bch2_fs_recovery(struct bch_fs *c)
bch_info
(
c
,
"recovering from clean shutdown, journal seq %llu"
,
le64_to_cpu
(
clean
->
journal_seq
));
if
(
!
clean
||
!
c
->
opts
.
no
fsck
)
{
if
(
!
clean
||
c
->
opts
.
fsck
)
{
ret
=
bch2_journal_read
(
c
,
&
journal
);
if
(
ret
)
goto
err
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment