]> granicus.if.org Git - postgresql/commit
Tolerate EINVAL when calling fsync() on a directory.
authorThomas Munro <tmunro@postgresql.org>
Sun, 24 Feb 2019 10:48:52 +0000 (23:48 +1300)
committerThomas Munro <tmunro@postgresql.org>
Sun, 24 Feb 2019 10:50:20 +0000 (23:50 +1300)
commitf16735d80d2fbe1c86f4ac044ee66fe2073b8877
treec8ff214a86e291794a32eee91fe25f69625fbf2f
parent483520eca426fb1b428e8416d1d014ac5ad80ef4
Tolerate EINVAL when calling fsync() on a directory.

Previously, we tolerated EBADF as a way for the operating system to
indicate that it doesn't support fsync() on a directory.  Tolerate
EINVAL too, for older versions of Linux CIFS.

Bug #15636.  Back-patch all the way.

Reported-by: John Klann
Discussion: https://postgr.es/m/15636-d380890dafd78fc6@postgresql.org
src/backend/storage/file/fd.c
src/common/file_utils.c