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
5e448c48
Commit
5e448c48
authored
Jan 05, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: print sb magic when relevant
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
5b883656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
fs/bcachefs/super-io.c
fs/bcachefs/super-io.c
+8
-1
No files found.
fs/bcachefs/super-io.c
View file @
5e448c48
...
...
@@ -628,7 +628,9 @@ static int read_one_super(struct bch_sb_handle *sb, u64 offset, struct printbuf
if
(
!
uuid_equal
(
&
sb
->
sb
->
magic
,
&
BCACHE_MAGIC
)
&&
!
uuid_equal
(
&
sb
->
sb
->
magic
,
&
BCHFS_MAGIC
))
{
prt_printf
(
err
,
"Not a bcachefs superblock"
);
prt_str
(
err
,
"Not a bcachefs superblock (got magic "
);
pr_uuid
(
err
,
sb
->
sb
->
magic
.
b
);
prt_str
(
err
,
")"
);
return
-
BCH_ERR_invalid_sb_magic
;
}
...
...
@@ -1261,6 +1263,11 @@ void bch2_sb_to_text(struct printbuf *out, struct bch_sb *sb,
pr_uuid
(
out
,
sb
->
uuid
.
b
);
prt_newline
(
out
);
prt_printf
(
out
,
"Magic number:"
);
prt_tab
(
out
);
pr_uuid
(
out
,
sb
->
magic
.
b
);
prt_newline
(
out
);
prt_str
(
out
,
"Device index:"
);
prt_tab
(
out
);
prt_printf
(
out
,
"%u"
,
sb
->
dev_idx
);
...
...
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