[Pvfs2-developers] read-only mounts

Phil Carns carns at mcs.anl.gov
Tue Feb 19 14:57:30 EST 2008


Pete Wyckoff wrote:
> It is possible to mount pvfs via the kernel interface read-only, but
> I'm not sure if we have a way to do that via userspace apps, e.g.
> pvfs2-ls, MPI.  For a remote-mount metadata mirroring project we've
> been doing, this would be handy.
> 
> I think the only feasible way to handle it is at the clients.
> Servers don't keep any state about who has what mounted, and we
> don't want to add some sort of "read-only export" capability to
> servers.  Maybe it could be argued that we should just run apps that
> don't write.

You wouldn't have to add read-only export capability- its already there :)

Have a look at the "ReadOnly" option and comments that go with it in 
src/common/misc/server-config.c.  I've used it (and the associated 
squashing options) a little bit and it seems to work fine.  Would this 
work for what you need?

-Phil


More information about the Pvfs2-developers mailing list