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/[email protected] Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bcf6278343444aa1de93b7c131b30c608a5b6e45 Modified Files -------------- src/backend/storage/file/fd.c | 2 +- src/common/file_utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
