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

2020-12-16 Thread Vladimir Sementsov-Ogievskiy
16.12.2020 16:53, Kevin Wolf wrote: Am 16.12.2020 um 14:06 hat David Edmondson geschrieben: On Wednesday, 2020-12-16 at 12:57:46 +01, Kevin Wolf wrote: Am 16.12.2020 um 12:38 hat David Edmondson geschrieben: On Wednesday, 2020-12-16 at 12:29:40 +01, Kevin Wolf wrote: Am 15.12.2020 um 20:01

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

2020-12-16 Thread Kevin Wolf
Am 16.12.2020 um 14:06 hat David Edmondson geschrieben: > On Wednesday, 2020-12-16 at 12:57:46 +01, Kevin Wolf wrote: > > > Am 16.12.2020 um 12:38 hat David Edmondson geschrieben: > >> On Wednesday, 2020-12-16 at 12:29:40 +01, Kevin Wolf wrote: > >> > >> > Am 15.12.2020 um 20:01 hat David Edmonds

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

2020-12-16 Thread David Edmondson
On Wednesday, 2020-12-16 at 12:57:46 +01, Kevin Wolf wrote: > Am 16.12.2020 um 12:38 hat David Edmondson geschrieben: >> On Wednesday, 2020-12-16 at 12:29:40 +01, Kevin Wolf wrote: >> >> > Am 15.12.2020 um 20:01 hat David Edmondson geschrieben: >> >> When a call to fcntl(2) for the purpose of man

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

2020-12-16 Thread Kevin Wolf
Am 16.12.2020 um 12:38 hat David Edmondson geschrieben: > On Wednesday, 2020-12-16 at 12:29:40 +01, Kevin Wolf wrote: > > > Am 15.12.2020 um 20:01 hat David Edmondson geschrieben: > >> When a call to fcntl(2) for the purpose of manipulating file locks > >> fails, report the error returned by fcntl

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

2020-12-16 Thread David Edmondson
On Wednesday, 2020-12-16 at 12:29:40 +01, Kevin Wolf wrote: > Am 15.12.2020 um 20:01 hat David Edmondson geschrieben: >> When a call to fcntl(2) for the purpose of manipulating file locks >> fails, report the error returned by fcntl. >> >> Signed-off-by: David Edmondson > > Is appending "Resourc

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

2020-12-16 Thread Kevin Wolf
Am 15.12.2020 um 20:01 hat David Edmondson geschrieben: > When a call to fcntl(2) for the purpose of manipulating file locks > fails, report the error returned by fcntl. > > Signed-off-by: David Edmondson Is appending "Resource temporarily unavailable" in the common case (a file locked by anothe

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

2020-12-15 Thread Vladimir Sementsov-Ogievskiy
15.12.2020 22:01, David Edmondson wrote: When a call to fcntl(2) for the purpose of manipulating file locks fails, report the error returned by fcntl. Signed-off-by: David Edmondson Reviewed-by: Vladimir Sementsov-Ogievskiy -- Best regards, Vladimir

[PATCH] block: report errno when flock fcntl fails

2020-12-15 Thread David Edmondson
When a call to fcntl(2) for the purpose of manipulating file locks fails, report the error returned by fcntl. Signed-off-by: David Edmondson --- block/file-posix.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c i