From owner-freebsd-fs@freebsd.org Tue Oct 4 09:17:57 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B6139AF49E5; Tue, 4 Oct 2016 09:17:57 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id A1C851062; Tue, 4 Oct 2016 09:17:56 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id MAA00340; Tue, 04 Oct 2016 12:16:25 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1brLpo-0006jM-Tm; Tue, 04 Oct 2016 12:16:24 +0300 Subject: Re: Regression with revision 303970 (was kern.proc.pathname failure while booting from zfs) To: Konstantin Belousov References: <1aebfb2b-5df6-abe0-686f-b170fdaef510@FreeBSD.org> <20160904145103.GD83214@kib.kiev.ua> Cc: Frederic Chardon , freebsd-stable@FreeBSD.org, freebsd-current@FreeBSD.org, freebsd-fs@FreeBSD.org From: Andriy Gapon Message-ID: <7a30660a-1914-2f61-c162-7f9c2a7f6096@FreeBSD.org> Date: Tue, 4 Oct 2016 12:15:29 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2016 09:17:57 -0000 I've written a patch that implements zfs_vptocnp() using z_parent property. The new code should be 100% reliable for directories and "mostly" reliable for files (that is, when hardlinks across directories are not used). Could you please review / test it? https://reviews.freebsd.org/D8146 Thanks! -- Andriy Gapon