Boost logo

Boost Users :

From: peter_foelsche_at_[hidden]
Date: 2008-05-01 18:38:47


Dear All,

 

from what it looks like the memory mapped io classes in boost::interprocess cannot deal with readonly files.

This is a big problem.

I think opening readonly files should be possible but all write operations to the file should fail.

Of course mapping a readonly file should be done with the matching flags so that the mapping can be shared and that the matching address space is readonly.

Also another drawback is that at least on Windows disk-space is being allocated when growing a file.

This is slow and it can be avoided by making the file sparse.

On UNIXs this is the default.

 

Thanks

Peter



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net