> > is your 9p server ever going to be running on an nfs-mounted
> > partition?
> 
> As with any software -- it would be pretty difficult for me to prevent 
> somebody from doing that, but in general -- no.

i use "in general" to mean the exact opposite of what
you are saying here; there is a case where it could happen.

> As I have indicated some time ago -- its NOT a problem for me to have
> X clients do random access and Y clients doing DMAPPEND on the same
> file. The integrity of the file will NOT be affected. It is protected by
> the chunk_size that ALL I/O is coming to me at. The only
> thing that I have to guarantee at the server end is that all of the
> writes coming from clients asking for DMAPPEND will, in fact, be
> written at the offset corresponding to the EOF (whatever that might
> be at the moment when the I/O arrives).

okay, so you're using DMAPPEND like sbrk(2).  how do you avoid
clients caring about the address of this new hunk of memory?^u
clients caring about the offset of this hunk of the file?
that is, the same problem malloc has in a multi-threaded app
with sbrk.

sounds like distributed shared memory with lazy allocation.

why not put the things your storing in seperate files, or of there
are an unwielded number of things, use some sort of clone interface
to create a new $thing that the server carefully maps into the big file?

- erik

Reply via email to