pgsql: Tolerate EINVAL when calling fsync() on a directory. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Tolerate EINVAL when calling fsync() on a directory.
Date
Msg-id E1gxrdi-0002Cl-H9@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ede6b19624d1836635d8bd2c8cdc6a694d8ff678

Modified Files
--------------
src/backend/storage/file/fd.c | 2 +-
src/bin/initdb/initdb.c       | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Tolerate EINVAL when calling fsync() on a directory.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix ecpg bugs caused by missing semicolons in the backendgramma