bcachefs: improve "no device to read from" message
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
b161ca8096
commit
bf611567b7
@ -869,9 +869,15 @@ retry_pick:
|
|||||||
goto hole;
|
goto hole;
|
||||||
|
|
||||||
if (pick_ret < 0) {
|
if (pick_ret < 0) {
|
||||||
|
struct printbuf buf = PRINTBUF;
|
||||||
|
bch2_bkey_val_to_text(&buf, c, k);
|
||||||
|
|
||||||
bch_err_inum_offset_ratelimited(c,
|
bch_err_inum_offset_ratelimited(c,
|
||||||
read_pos.inode, read_pos.offset << 9,
|
read_pos.inode, read_pos.offset << 9,
|
||||||
"no device to read from");
|
"no device to read from: %s\n %s",
|
||||||
|
bch2_err_str(pick_ret),
|
||||||
|
buf.buf);
|
||||||
|
printbuf_exit(&buf);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user