Re: [PATCH 1/3] util: validate whether O_DIRECT is supported after failure

2020-07-02 Thread Philippe Mathieu-Daudé
On 7/1/20 6:05 PM, Daniel P. Berrangé wrote: > Currently we suggest that a filesystem may not support O_DIRECT after > seeing an EINVAL. Other things can cause EINVAL though, so it is better > to do an explicit check, and then report a definitive error message. > > Signed-off-by: Daniel P. Berrang

[PATCH 1/3] util: validate whether O_DIRECT is supported after failure

2020-07-01 Thread Daniel P . Berrangé
Currently we suggest that a filesystem may not support O_DIRECT after seeing an EINVAL. Other things can cause EINVAL though, so it is better to do an explicit check, and then report a definitive error message. Signed-off-by: Daniel P. Berrangé --- util/osdep.c | 13 +++-- 1 file changed