URL:
https://github.com/SSSD/sssd/pull/5370
Title: #5370: nss: Use posix_fallocate() to alloc memcache file
deastoe commented:
"""
Another thing to consider is that posix_fallocate will fail for some
file systems, for example NFS.
My understanding is that `posix_fallocate` will fallback to an emulated mode if the
filesystem doesn't support `fallocate`. There are caveats to that (in the linked glibc
docs), but I don't think they would be concerns for us since there is only one writer
and we don't use `O_WRONLY` or `O_WRONLY`.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5370#issuecomment-709179643