DragonFly BSD
DragonFly kernel List (threaded) for 2006-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: a take at cache coherency


From: Csaba Henk <csaba.henk@xxxxxxx>
Date: 24 Jan 2006 04:49:42 GMT

On 2006-01-24, Csaba Henk <csaba.henk@xxxxxxx> wrote:
> On 2006-01-23, Simon 'corecode' Schubert <corecode@xxxxxxxxxxxx> wrote:
>> + renames on the lower layer don't trigger namecache 
>> renames/invalidations on a higher layer.
[...]
> It's easy to set up a scenario where the upper layer goes async with a
> rename done in the lower one.

Just to give a concrete example:

/tmp$ mkdir -p a/d a/dd b
/tmp$ echo > a/d/x
/tmp$ echo x > a/dd/x
/tmp$ mount_null a b
/tmp$ ls -l a/dd/x
-rw-r--r--  1 csaba  wheel  2 Jan 24 01:17 a/dd/x
/tmp$ ls -l b/dd/x
-rw-r--r--  1 csaba  wheel  2 Jan 24 01:17 b/dd/x
/tmp$ mv a/dd a/ddd
/tmp$ mv a/d a/dd
/tmp$ ls -l a/dd/x
-rw-r--r--  1 csaba  wheel  0 Jan 24 01:17 a/dd/x
/tmp$ ls -l b/dd/x
-rw-r--r--  1 csaba  wheel  2 Jan 24 01:17 b/dd/x

 *  *  *

OK, the neat idea of keeping references only downward seems to be
unfeasible. Let's add a list of shadowing entries to the namecache
struct.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]