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

Andriy Gapon avg at FreeBSD.org
Thu Jul 21 10:52:07 UTC 2016


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

This is fixed in 302994.
Sorry about the breakage.

> 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.


-- 
Andriy Gapon


More information about the freebsd-fs mailing list