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
3235e04a
Commit
3235e04a
authored
Feb 16, 2024
by
Kent Overstreet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bcachefs: more informative write path error message
Signed-off-by:
Kent Overstreet
<
kent.overstreet@linux.dev
>
parent
74406f66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
fs/bcachefs/io_write.c
fs/bcachefs/io_write.c
+11
-5
No files found.
fs/bcachefs/io_write.c
View file @
3235e04a
...
...
@@ -530,7 +530,8 @@ static void __bch2_write_index(struct bch_write_op *op)
bch_err_inum_offset_ratelimited
(
c
,
insert
->
k
.
p
.
inode
,
insert
->
k
.
p
.
offset
<<
9
,
"write error while doing btree update: %s"
,
"%s write error while doing btree update: %s"
,
op
->
flags
&
BCH_WRITE_MOVE
?
"move"
:
"user"
,
bch2_err_str
(
ret
));
}
...
...
@@ -1067,7 +1068,8 @@ static int bch2_write_extent(struct bch_write_op *op, struct write_point *wp,
*
_dst
=
dst
;
return
more
;
csum_err:
bch_err
(
c
,
"error verifying existing checksum while rewriting existing data (memory corruption?)"
);
bch_err
(
c
,
"%s writ error: error verifying existing checksum while rewriting existing data (memory corruption?)"
,
op
->
flags
&
BCH_WRITE_MOVE
?
"move"
:
"user"
);
ret
=
-
EIO
;
err:
if
(
to_wbio
(
dst
)
->
bounce
)
...
...
@@ -1169,7 +1171,8 @@ static void bch2_nocow_write_convert_unwritten(struct bch_write_op *op)
bch_err_inum_offset_ratelimited
(
c
,
insert
->
k
.
p
.
inode
,
insert
->
k
.
p
.
offset
<<
9
,
"write error while doing btree update: %s"
,
"%s write error while doing btree update: %s"
,
op
->
flags
&
BCH_WRITE_MOVE
?
"move"
:
"user"
,
bch2_err_str
(
ret
));
}
...
...
@@ -1449,7 +1452,9 @@ static void __bch2_write(struct bch_write_op *op)
bch_err_inum_offset_ratelimited
(
c
,
op
->
pos
.
inode
,
op
->
pos
.
offset
<<
9
,
"%s(): error: %s"
,
__func__
,
bch2_err_str
(
ret
));
"%s(): %s error: %s"
,
__func__
,
op
->
flags
&
BCH_WRITE_MOVE
?
"move"
:
"user"
,
bch2_err_str
(
ret
));
op
->
error
=
ret
;
break
;
}
...
...
@@ -1573,7 +1578,8 @@ CLOSURE_CALLBACK(bch2_write)
bch_err_inum_offset_ratelimited
(
c
,
op
->
pos
.
inode
,
op
->
pos
.
offset
<<
9
,
"misaligned write"
);
"%s write error: misaligned write"
,
op
->
flags
&
BCH_WRITE_MOVE
?
"move"
:
"user"
);
op
->
error
=
-
EIO
;
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