mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
cmd_migrate: check for write errors
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
fe37b584d3
commit
5fa4e3da62
@ -273,7 +273,11 @@ static void write_data(struct bch_fs *c,
|
||||
|
||||
closure_call(&op.cl, bch2_write, NULL, NULL);
|
||||
|
||||
BUG_ON(!(op.flags & BCH_WRITE_DONE));
|
||||
dst_inode->bi_sectors += len >> 9;
|
||||
|
||||
if (op.error)
|
||||
die("write error: %s", bch2_err_str(op.error));
|
||||
}
|
||||
|
||||
static void copy_data(struct bch_fs *c,
|
||||
|
Loading…
Reference in New Issue
Block a user