From owner-freebsd-fs@freebsd.org Thu Jul 21 09:42:26 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 9F238B9FA29 for ; Thu, 21 Jul 2016 09:42:26 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5A6421C85 for ; Thu, 21 Jul 2016 09:42:26 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 46FD02439 for ; Thu, 21 Jul 2016 09:42:21 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/46FD02439; dkim=none; dkim-atps=neutral To: freebsd-fs@freebsd.org From: Matthew Seaman Subject: ZFS snapshot automount -- not creating '..' directory links correctly? Message-ID: Date: Thu, 21 Jul 2016 10:42:20 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FpvS2tguP0AMsHrWfv0HExnpp12IDm1Sx" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk 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 09:42:26 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FpvS2tguP0AMsHrWfv0HExnpp12IDm1Sx Content-Type: multipart/mixed; boundary="nMR3NpR0RhCaAxMgnsV1chq17fi6EsxGD" From: Matthew Seaman To: freebsd-fs@freebsd.org Message-ID: Subject: ZFS snapshot automount -- not creating '..' directory links correctly? --nMR3NpR0RhCaAxMgnsV1chq17fi6EsxGD Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 =2E: 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 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. Cheers, Matthew --nMR3NpR0RhCaAxMgnsV1chq17fi6EsxGD-- --FpvS2tguP0AMsHrWfv0HExnpp12IDm1Sx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXkJj9AAoJEABRPxDgqeTnvVAQALVDPxFcQ1cA7bqOw61wOUB/ m7Ek/rWC8soYwKHGWyhf40BU+g57IvTpbYXR54/hnMmvGJHkjsZQDkkth+p9H7rR rJcD2nQYL2BYXb06z0HJQE5hPZJ4RfBAbHEkocMw4BL+8bpaEfoTmQdvws499XMW 2djkKqclu05pNRVXNCkDxsE9yMBh9cpEWfLyO2fmzMlGuhIf7LlDjqr7GtjcMe6u N1DJZKM32mcFHdBBFNrCOtC+M57YWsXVffQQIKRYSP+omTroLwF/Nu+NgZLaN4Tw tuV7pYfTku65PPr6Q11TQEgRshCh2QHDPZbjirYquvwBSZli0y3nim7P6LBZzDKy /kR1tsaQESbVxRa122mx+1uEBkEDpklEdesDdEUbTPh9hi6zp2sHbQCsXBlYGgKZ inGwtpr87Y/dh1Aj2n6d283i1ngLlfkrZ10Tpf3l26zlFY4RBey1DudQwgpQ1sKQ 9/V5+iph1fYN051uPdi3ADXNsQHpMVYapMN1I4KONPoqGyjTClMmNeJC05v80pWE eNubBK3U3z+Rxk10nz004uEe06CYdrmUJEYVXklruIXkkvqrAmaNzXhnbrrMP1V4 G0ZEPP5WBdAChICJ7KERLLZXT9hCbd9vilyQd302v39bxwxyZuYScsIdbY9f9tXG 3OMfdFq26PATPq5jWxq6 =QvZ+ -----END PGP SIGNATURE----- --FpvS2tguP0AMsHrWfv0HExnpp12IDm1Sx--