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
8f2bbcdd
Commit
8f2bbcdd
authored
1 year ago
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: ec: Improve error message for btree node in stripe
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
2f4e9472
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
fs/bcachefs/ec.c
fs/bcachefs/ec.c
+14
-1
No files found.
fs/bcachefs/ec.c
View file @
8f2bbcdd
...
...
@@ -898,8 +898,21 @@ static int ec_stripe_update_extent(struct btree_trans *trans,
if
(
*
bp_offset
==
U64_MAX
)
return
0
;
if
(
bch2_fs_inconsistent_on
(
bp
.
level
,
c
,
"found btree node in erasure coded bucket!?"
))
if
(
bp
.
level
)
{
struct
printbuf
buf
=
PRINTBUF
;
struct
btree_iter
node_iter
;
struct
btree
*
b
;
b
=
bch2_backpointer_get_node
(
trans
,
&
node_iter
,
bucket
,
*
bp_offset
,
bp
);
bch2_trans_iter_exit
(
trans
,
&
node_iter
);
prt_printf
(
&
buf
,
"found btree node in erasure coded bucket: b=%px
\n
"
,
b
);
bch2_backpointer_to_text
(
&
buf
,
&
bp
);
bch2_fs_inconsistent
(
c
,
"%s"
,
buf
.
buf
);
printbuf_exit
(
&
buf
);
return
-
EIO
;
}
k
=
bch2_backpointer_get_key
(
trans
,
&
iter
,
bucket
,
*
bp_offset
,
bp
);
ret
=
bkey_err
(
k
);
...
...
This diff is collapsed.
Click to expand it.
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