ZFS snapshot automount -- not creating '..' directory links correctly?

Matthew Seaman matthew at FreeBSD.org
Thu Jul 21 09:42:26 UTC 2016


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 at 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
root at 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20160721/cf85ea07/attachment.sig>


More information about the freebsd-fs mailing list