Home
last modified time | relevance | path

Searched hist:d0a96155 (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dfile-posix.cd0a96155 Wed May 09 21:53:34 GMT 2018 Max Reitz <mreitz@redhat.com> block/file-posix: Pass FD to locking helpers

raw_apply_lock_bytes() and raw_check_lock_bytes() currently take a
BDRVRawState *, but they only use the lock_fd field. During image
creation, we do not have a BDRVRawState, but we do have an FD; so if we
want to reuse the functions there, we should modify them to receive only
the FD.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20180509215336.31304-2-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>