Unable to pwd in ZFS snapshot

Kostik Belousov kostikbel at gmail.com
Tue Feb 10 09:33:36 PST 2009


On Tue, Feb 10, 2009 at 06:52:05PM +0200, Jaakko Heinonen wrote:
> 
> Hi,
> 
> On 2009-02-09, Robert Watson wrote:
> > Now that we have a new VOP to assist in reverse-name resolution, it could be 
> > that ZFS could provide the back-end lookup to address this issue without 
> > forcing the use of the namecache for things we don't want to cache.
> 
> I think that a bigger problem is how __getcwd() works. If single path
> component lookup fails from cache or with VOP_VPTOCNP __getwcd() will
> abort. So even if ZFS supported VOP_VPTOCNP perfectly some path
> components may be on a file system which doesn't and the hidden ".zfs"
> prevents userspace traversal from succeeding.
> 
> Actually ZFS caches the hidden ".zfs" directory (but nothing below it).
> Thus if __getcwd() reverted to readdir scan only for those components
> which really require it getcwd(3) should work right now (as long as
> ".zfs" is in cache).
> 
> Looks like someone has tried to do this already:
> 
> http://lists.freebsd.org/pipermail/freebsd-current/2004-May/027020.html
> 
> The patch doesn't apply against head anymore.

It is being worked on right now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20090210/13303464/attachment.pgp


More information about the freebsd-fs mailing list