Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

4 views
Skip to first unread message

Matthew Seaman

unread,
Jul 21, 2016, 5:42:40 AM7/21/16
to
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
ro...@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


signature.asc

Andriy Gapon

unread,
Jul 21, 2016, 6:52:22 AM7/21/16
to
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.

> ro...@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
_______________________________________________
freeb...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "freebsd-fs-...@freebsd.org"

Matthew Seaman

unread,
Jul 22, 2016, 2:27:00 AM7/22/16
to
Thanks for that. I upgraded and now my backups are working properly again.

Cheers,

Matthew



signature.asc
0 new messages