Re: [PATCH v4] block: report errno when flock fcntl fails

2021-01-13 Thread David Edmondson
On Wednesday, 2021-01-13 at 13:26:48 +03, Vladimir Sementsov-Ogievskiy wrote: > 12.01.2021 18:27, David Edmondson wrote: >> When a call to fcntl(2) for the purpose of manipulating file locks >> fails with an error other than EAGAIN or EACCES, report the error >> returned by fcntl. >> >> EAGAIN or

Re: [PATCH v4] block: report errno when flock fcntl fails

2021-01-13 Thread Vladimir Sementsov-Ogievskiy
12.01.2021 18:27, David Edmondson wrote: When a call to fcntl(2) for the purpose of manipulating 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

[PATCH v4] block: report errno when flock fcntl fails

2021-01-12 Thread David Edmondson
When a call to fcntl(2) for the purpose of manipulating 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. Signed-o