pgsql: Tolerate EINVAL when calling fsync() on a directory.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Tolerate EINVAL when calling fsync() on a directory.
Date: 2019-02-24 11:07:51
Message-ID: E1gxrdP-0002Bv-L8@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0ec89a0f6752d55efee4377928087b1865d7ac5e

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

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2019-02-24 11:08:10 pgsql: Tolerate EINVAL when calling fsync() on a directory.
Previous Message Thomas Munro 2019-02-24 11:07:29 pgsql: Tolerate EINVAL when calling fsync() on a directory.