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
ef1634f0
Commit
ef1634f0
authored
Jul 20, 2023
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: Print version, options earlier in startup path
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
60a5b898
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fs/bcachefs/super.c
fs/bcachefs/super.c
+3
-2
No files found.
fs/bcachefs/super.c
View file @
ef1634f0
...
@@ -883,7 +883,7 @@ static void print_mount_opts(struct bch_fs *c)
...
@@ -883,7 +883,7 @@ static void print_mount_opts(struct bch_fs *c)
struct
printbuf
p
=
PRINTBUF
;
struct
printbuf
p
=
PRINTBUF
;
bool
first
=
true
;
bool
first
=
true
;
prt_str
(
&
p
,
"mount
ed
version "
);
prt_str
(
&
p
,
"mount
ing
version "
);
bch2_version_to_text
(
&
p
,
c
->
sb
.
version
);
bch2_version_to_text
(
&
p
,
c
->
sb
.
version
);
if
(
c
->
opts
.
read_only
)
{
if
(
c
->
opts
.
read_only
)
{
...
@@ -919,6 +919,8 @@ int bch2_fs_start(struct bch_fs *c)
...
@@ -919,6 +919,8 @@ int bch2_fs_start(struct bch_fs *c)
unsigned
i
;
unsigned
i
;
int
ret
;
int
ret
;
print_mount_opts
(
c
);
down_write
(
&
c
->
state_lock
);
down_write
(
&
c
->
state_lock
);
BUG_ON
(
test_bit
(
BCH_FS_STARTED
,
&
c
->
flags
));
BUG_ON
(
test_bit
(
BCH_FS_STARTED
,
&
c
->
flags
));
...
@@ -972,7 +974,6 @@ int bch2_fs_start(struct bch_fs *c)
...
@@ -972,7 +974,6 @@ int bch2_fs_start(struct bch_fs *c)
goto
err
;
goto
err
;
}
}
print_mount_opts
(
c
);
ret
=
0
;
ret
=
0
;
out:
out:
up_write
(
&
c
->
state_lock
);
up_write
(
&
c
->
state_lock
);
...
...
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