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

2021-01-18 Thread Max Reitz
On 13.01.21 17:44, David Edmondson wrote: 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

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

2021-01-13 Thread Vladimir Sementsov-Ogievskiy
13.01.2021 19:44, David Edmondson wrote: 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

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

2021-01-13 Thread David Edmondson
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