Commit 9f850f67 authored by Fam Zheng's avatar Fam Zheng Committed by Max Reitz
Browse files

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: default avatarKevin Wolf <kwolf@redhat.com>
Signed-off-by: default avatarFam Zheng <famz@redhat.com>
Message-id: 20180702025836.20957-3-famz@redhat.com
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
parent 148546c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2611,7 +2611,7 @@ static int coroutine_fn raw_co_copy_range_to(BlockDriverState *bs,
    }

    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 paio_submit_co_full(bs, src_s->fd, src_offset, s->fd, dst_offset,