Rename one of is_fsync_support

This commit is contained in:
Mathieu Comandon 2023-06-14 01:08:40 -07:00
parent 41c300fefd
commit 7ad9d26432
2 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ import functools
import os
import subprocess
__all__ = ("is_fsync_supported",)
__all__ = ("get_fsync_support",)
# pylint: disable=invalid-name,too-few-public-methods
@ -402,7 +402,7 @@ def is_futex_waitv_supported():
@functools.lru_cache(None)
def is_fsync_supported():
def get_fsync_support():
"""Checks whether the FUTEX_WAIT_MULTIPLE operation, the futex2
syscalls, or the futex_waitv syscall is supported on this kernel.

View file

@ -265,7 +265,7 @@ def is_esync_limit_set():
def is_fsync_supported():
"""Checks if the running kernel has Valve's futex patch applied."""
return fsync.is_fsync_supported()
return fsync.get_fsync_support()
def get_default_version():