]> granicus.if.org Git - postgresql/commit
Tolerate EINVAL when calling fsync() on a directory.
authorThomas Munro <tmunro@postgresql.org>
Sun, 24 Feb 2019 10:59:26 +0000 (23:59 +1300)
committerThomas Munro <tmunro@postgresql.org>
Sun, 24 Feb 2019 11:02:56 +0000 (00:02 +1300)
commitede6b19624d1836635d8bd2c8cdc6a694d8ff678
tree0efca46d3c6ddda4a683d0a130501dfddf818035
parent99a1554a2680d25f0b54d4209ccfc76c443df6e3
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/bin/initdb/initdb.c