Re: [PATCH] cowlinks v2

Jamie Lokier
2004-04-03T01:59:29Z

Erik Andersen wrote:
> > Here's a tricky situation:
> >
> > 1. A file is cowlinked. Then each cowlink is mmap()'d, one per process.
> >
> > 2. At this point both mappings share the same pages in RAM.
> >
> > 3. Then one of the cowlinks is written to...
>
> Using mmap with PROT_WRITE on a cowlink must preemptively
> break the link.

I forget to mention, they are PROT_READ shared mappings.

-- Jamie