[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st_nlink of directory nodes in shadowfs
From: |
Moritz Schulte |
Subject: |
Re: st_nlink of directory nodes in shadowfs |
Date: |
Sun, 28 Oct 2001 14:22:07 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 |
tb@becket.net (Thomas Bushnell, BSG) writes:
> Oh, well you only need that once.
>
> My thought has always been that an efficient shadow directory would
> scan the underlying directories once on startup, and after that
> would maintain correct information through the change-notification
> mechanism.
Now, that is a completely different approach then the one I used. My
version doesn't remember anything about the states of the underlying
filesystems. Virtual directory nodes are created and freed on the fly
during a lookup. These nodes hold ports to the according underlying
directories, from which that virtual directory should represent the
union. Example: settrans /shadow shadowfs /a /b /c; /a /b and /c
contain the directory 'foo'. If the user looks up the directory
/shadow/foo, the looked up node has ports to /a/foo, /b/foo and
/c/foo.
Implementing that you how suggested would be more or less a rewrite..
moritz
--
Moritz Schulte <moritz@chaosdorf.de> http://www.chaosdorf.de/moritz/
"In short: just say NO TO DRUGS, and maybe you won't end up like
the Hurd people." - Linus Torvalds.
GPG fingerprint = 3A14 3923 15BE FD57 FC06 B501 0841 2D7B 6F98 4199
- Re: st_nlink of directory nodes in shadowfs, (continued)
- Re: st_nlink of directory nodes in shadowfs, Roland McGrath, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Roland McGrath, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Moritz Schulte, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/27
- Re: st_nlink of directory nodes in shadowfs,
Moritz Schulte <=
- Re: st_nlink of directory nodes in shadowfs, Neal H Walfield, 2001/10/28
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/28
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/28
- Re: st_nlink of directory nodes in shadowfs, Thomas Bushnell, BSG, 2001/10/27