Date: Thu, 21 Jul 2016 10:42:20 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-fs@freebsd.org Subject: ZFS snapshot automount -- not creating '..' directory links correctly? Message-ID: <c426d60a-88af-6297-d99b-be9d7ac90661@freebsd.org>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--FpvS2tguP0AMsHrWfv0HExnpp12IDm1Sx
Content-Type: multipart/mixed; boundary="nMR3NpR0RhCaAxMgnsV1chq17fi6EsxGD"
From: Matthew Seaman <matthew@freebsd.org>
To: freebsd-fs@freebsd.org
Message-ID: <c426d60a-88af-6297-d99b-be9d7ac90661@freebsd.org>
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c426d60a-88af-6297-d99b-be9d7ac90661>
