bug-hurd
[Top][All Lists]
Advanced

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

root node in shadowfs


From: Moritz Schulte
Subject: root node in shadowfs
Date: Thu, 18 Oct 2001 22:54:52 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

Hello,

  $ settrans -afg shadow shadowfs $PWD

(yes, in this case, it should be possible to cd
shadow/shadow/shadow...)

The problem was that shadowfs had the root node 'shadow' looked while
it also tried to _lookup_ the root node 'shadow' - result: deadlock.

The root node was different then all other nodes in shadowfs, because
this was the only 'static' node. All other nodes were created
on-the-fly during a lookup.

I got the idea to check at the beginning of netfs_S_dir_lookup()
wether the user wants to lookup something in the root node and if that
is the case to simply 'copy' the root node and use the copy for
further work. Then, the real root node would only be used as a
'template'. Locking would be done on the newly created node and there
wouldn't be deadlocks anymore.

Is that an acceptable solution for this locking problem or are there
better approaches?

Thanks,
                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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]