mirror of https://github.com/xemu-project/xemu.git
file-posix: Fix fd_open check in raw_co_copy_range_to
One of them is a typo. But update both to be more readable. Reported-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 20180702025836.20957-3-famz@redhat.com Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
148546c822
commit
9f850f67ad
|
@ -2611,7 +2611,7 @@ static int coroutine_fn raw_co_copy_range_to(BlockDriverState *bs,
|
||||||
}
|
}
|
||||||
|
|
||||||
src_s = src->bs->opaque;
|
src_s = src->bs->opaque;
|
||||||
if (fd_open(bs) < 0 || fd_open(bs) < 0) {
|
if (fd_open(src->bs) < 0 || fd_open(dst->bs) < 0) {
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
return paio_submit_co_full(bs, src_s->fd, src_offset, s->fd, dst_offset,
|
return paio_submit_co_full(bs, src_s->fd, src_offset, s->fd, dst_offset,
|
||||||
|
|
Loading…
Reference in New Issue