On Sat, May 29, 2010 at 9:19 PM, Roger Binns <rog...@rogerbinns.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 05/29/2010 02:01 PM, Richard Hipp wrote:
> >  Does anybody know if mmap() works for network files?
>
> It does.  However there is no way to ensure that everyone seeing the file
> will have a consistent view of it.  This is especially the case when they
> are on different machines.
>
> However there can even be consistency issues when all client processes are
> on the same machine.  This is because the client operating system should be
> segmenting its cache by user - ie if my user and your user map the same
> network file they should not share the client cache - as that is wonderful
> way of doing cache poisoning attacks.
>

Good to know.  Would moving to shm_open() help?  I haven't do that yet
because (I read) shm_open() requires -lrt when you link and I like keeping
the number of dependencies to a minimum.


>
> Roger
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkwBvSkACgkQmOOfHg372QT4NwCgnxbBlQZVisfxJWqy+yPnvzon
> gmAAnj8LnoZq4wIyYO3AcZTxbEDQP/Z3
> =uKqk
> -----END PGP SIGNATURE-----
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>



-- 
---------------------
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to