Doubt on mmap file backend

Prem Kumar n.premkumar.me at gmail.com
Wed Sep 19 11:38:17 UTC 2018


We are trying to map the file and content is written in to specific offset.
In meanwhile, if try to access the mmap'd content at specified offset, we
are getting NULL value. we have not called msync() yet. the mmap called
with MAP_SHARED.
Is it possible that mmap content can differ on read after write or is this
the problem happening because read is called before the msync().Sorry ,it
is very generic question ..Wanted to know if any idea on the behavior.

Thanks,
Prem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20180919/202a8562/attachment.html>


More information about the varnish-misc mailing list