From cd5bc3590f3fd8fe5191b16d8cfc273e052a2f67 Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 1 Feb 2022 19:14:40 +0100 Subject: [PATCH] Assume F_FULLFSYNC on darwin --- radicale/pathutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/pathutils.py b/radicale/pathutils.py index 56e6fa0..448817e 100644 --- a/radicale/pathutils.py +++ b/radicale/pathutils.py @@ -193,7 +193,7 @@ def rename_exchange(src: str, dst: str) -> None: def fsync(fd: int) -> None: - if sys.platform != "win32" and hasattr(fcntl, "F_FULLFSYNC"): + if sys.platform == "darwin": fcntl.fcntl(fd, fcntl.F_FULLFSYNC) else: os.fsync(fd)