From owner-freebsd-fs@freebsd.org Thu Jul 21 10:52:07 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 D837DBA0CA3 for ; Thu, 21 Jul 2016 10:52:07 +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 102761158; Thu, 21 Jul 2016 10:52:03 +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 NAA27245; Thu, 21 Jul 2016 13:52:02 +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 1bQBaB-0005NQ-7D; Thu, 21 Jul 2016 13:52:01 +0300 Subject: Re: ZFS snapshot automount -- not creating '..' directory links correctly? To: Matthew Seaman , freebsd-fs@FreeBSD.org References: From: Andriy Gapon Message-ID: Date: Thu, 21 Jul 2016 13:50:57 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 10:52:07 -0000 On 21/07/2016 12:42, Matthew Seaman wrote: > Hi, > > Ever since I upgraded to 11.0-BETA1, my tarsnap backups have been > misbehaving. While corresponding with Colin, and trying to diagnose the > problem I discovered that there seems to be a problem with the '..' link > in an automounted snapshot. > > It's easy to reproduce: > > # zfs create zroot/empty > # zfs snapshot zroot/empty@20160721-1011 > > # cd /empty/.zfs/snapshot/20160721-1011 > # stat -f "%N: %HT%SY" \ > /empty /empty/.zfs /empty/.zfs/snapshot \ > /empty/.zfs/snapshot/20160721-1011 . .. > /empty: Directory > /empty/.zfs: Directory > /empty/.zfs/snapshot: Directory > /empty/.zfs/snapshot/20160721-1011: Directory > .: Directory > stat: ..: stat: Not a directory > > This is on: > > # uname -a > FreeBSD lucid-nonsense.infracaninophile.co.uk 11.0-BETA1 FreeBSD > 11.0-BETA1 #2 r302482: Sat Jul 9 15:37:08 BST 2016 This is fixed in 302994. Sorry about the breakage. > root@lucid-nonsense.infracaninophile.co.uk:/usr/obj/usr/src/sys/GENERIC > amd64 > > Attempting the same test on a 10.3-STABLE machine returned '..' as a > directory perfectly happily. -- Andriy Gapon