From owner-freebsd-fs@FreeBSD.ORG Tue Feb 10 17:33:36 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 151FB106564A; Tue, 10 Feb 2009 17:33:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id A84DC8FC1D; Tue, 10 Feb 2009 17:33:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LWwUH-0005Sx-LH; Tue, 10 Feb 2009 19:33:33 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n1AHXUhf026132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 10 Feb 2009 19:33:30 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n1AHXUll062458; Tue, 10 Feb 2009 19:33:30 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n1AHXTcV062457; Tue, 10 Feb 2009 19:33:29 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 10 Feb 2009 19:33:29 +0200 From: Kostik Belousov To: Jaakko Heinonen Message-ID: <20090210173329.GA62256@deviant.kiev.zoral.com.ua> References: <20090207200918.GA58657@test71.vk2pj.dyndns.org> <20090209155521.GA3418@a91-153-125-115.elisa-laajakaista.fi> <20090210165204.GA4300@a91-153-125-115.elisa-laajakaista.fi> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <20090210165204.GA4300@a91-153-125-115.elisa-laajakaista.fi> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LWwUH-0005Sx-LH 9458849fa2284252e7f6f21358cfd59b X-Terabit: YES Cc: freebsd-fs@freebsd.org, Peter Jeremy , Robert Watson Subject: Re: Unable to pwd in ZFS snapshot X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 17:33:36 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 10, 2009 at 06:52:05PM +0200, Jaakko Heinonen wrote: >=20 > Hi, >=20 > On 2009-02-09, Robert Watson wrote: > > Now that we have a new VOP to assist in reverse-name resolution, it cou= ld be=20 > > that ZFS could provide the back-end lookup to address this issue withou= t=20 > > forcing the use of the namecache for things we don't want to cache. >=20 > 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. >=20 > 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). >=20 > Looks like someone has tried to do this already: >=20 > http://lists.freebsd.org/pipermail/freebsd-current/2004-May/027020.html >=20 > The patch doesn't apply against head anymore. It is being worked on right now. --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmRumkACgkQC3+MBN1Mb4hKawCfVwEd75djdbf6lbOn0adCDxRN Y4gAoOsS8xiXiA17ayoF5Oa2GaVpvaLE =PgRJ -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--