Re: VFS + path walktrough
From: Enrico Weigelt
Date: Mon May 05 2008 - 14:24:54 EST
* Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> > Symlinks are easy: filesystem just needs to *stop* the resolution the
> > moment it finds one.
>
> That assumes you see types of objects as you do multi-step walk...
I've just read the spec for walk again:
Assuming the server doesn't resolve symlinks itself, the walk
will fail right at the symlink. So we can have a deeper look
here and try stat()'ing (adds one more request). If the fail
point *is* an symlink, we need to properly handle it.
Would it be very complicated to give the link target back to
VFS and let the lookup start again (w/ new name) ?
> No - you need inodes as well (i.e. as the absolute least you want
> mode and ownership). Which is to say, you need to issue stat on
> each component in such situation anyway. Not a win...
Naive question: is it really *necessary* to have all the
intermediate dirs in dcache ?
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/