summaryrefslogtreecommitdiffstats
path: root/linux-headers
diff options
context:
space:
mode:
authorDavid Edmondson2021-01-13 17:44:47 +0100
committerMax Reitz2021-01-26 14:36:37 +0100
commit797e3e380534bddad32121bfc980a39cc3dd2c96 (patch)
tree8ad4204984b799edc05caa465b0446fd7095d84d /linux-headers
parentsimplebench: add bench-backup.py (diff)
downloadqemu-797e3e380534bddad32121bfc980a39cc3dd2c96.tar.gz
qemu-797e3e380534bddad32121bfc980a39cc3dd2c96.tar.xz
qemu-797e3e380534bddad32121bfc980a39cc3dd2c96.zip
block: report errno when flock fcntl fails
When a call to fcntl(2) for the purpose of adding file locks fails with an error other than EAGAIN or EACCES, report the error returned by fcntl. EAGAIN or EACCES are elided as they are considered to be common failures, indicating that a conflicting lock is held by another process. No errors are elided when removing file locks. Signed-off-by: David Edmondson <david.edmondson@oracle.com> Message-Id: <20210113164447.2545785-1-david.edmondson@oracle.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'linux-headers')
0 files changed, 0 insertions, 0 deletions