[PATCH] Fix bogus fsync() error
Mon Jan 31 19:44:00 GMT 2011
If used on raw devices like /dev/sda fsync() always fails with EBADRQC
(54) because FlushFileBuffers() always fails with ERROR_INVALID_FUNCTION
The attached patch fixes this by simply ignoring this error in the
fhandler_base implementation. This should not affect any real flush
errors which likely would return other error codes.
An alternative approach would be to ignore the error only in a new
fhandler_raw_dev/floppy::fsync(). IMO not worth the effort is this case.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 763 bytes
Desc: not available
More information about the Cygwin-patches