]> 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:51:54 +0000 (23:51 +1300)
commit4d67357dbf5016836dc9ea9a8789cc539dfa3b60
tree19ec07a24168a31ec9be80966803969dc8f128e9
parent30dcb6270c915691fb82477f6b3c489977cae050
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