]> git.ipfire.org Git - thirdparty/postgresql.git/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 10:59:26 +0000 (23:59 +1300)
commitad714c6072c9482ffd398716fdc018f25c5c2fb0
tree0df7d1dec576e81c7b00fc5dcba2d6cf52fe7ee4
parent64b8c51bccad13462a8876f269c746e24e9068fd
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