URL:
https://github.com/SSSD/sssd/pull/5370
Title: #5370: nss: Use posix_fallocate() to alloc memcache file
alexey-tikhonov commented:
"""
AFAIK `ftruncate` will also set the increased size to 0. Is this
something we rely on in memcache? `sss_mmap_cache_init` does not mention this and based on
`posix_fallocate` it is unclear if it also initialize to 0 or not.
This was discussed in details starting from
https://github.com/SSSD/sssd/pull/5370#issuecomment-708564631 and conclusion was it should
be safe, but please feel free to read and see if you are convinced.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/5370#issuecomment-726707727