[Bug 278159] net/samba419 Shadow copy (zfs) can't seem to restore deleted file (4.13 broken, 4.16 fixed, 4.19 broken)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 04 Apr 2024 07:26:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278159

            Bug ID: 278159
           Summary: net/samba419 Shadow copy (zfs) can't seem to restore
                    deleted file (4.13 broken, 4.16 fixed, 4.19 broken)
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mikael@FreeBSD.org
          Reporter: dpy@pobox.com
          Assignee: mikael@FreeBSD.org
             Flags: maintainer-feedback?(mikael@FreeBSD.org)

Behavior that was fixed from 4.13 -> 4.16 but has been undone going to 4.19.

I'm running file servers at 3 sites, inside FreeBSD 14.0 jails running on zfs.
They are domain members and use acls. They perform failover via windows DFS. 
They are kept in sync via syncthing.

I have hourly snapshots during the day which are integrated with shadow copies.
As part of this job, I need to do an "ls
/bastille/jails/server/root/smb_shares/*/.zfs/snapshot" on the host. If I
don't, the snapshots don't seem to be detected. I am fine with this.

My problem, which was apparent in 4.13 and disappeared in 4.16, is that if a
file is deleted, it is visible in the "previous versions", but when I try to
copy it back, I get a "Could not find this item.  This is no longer located in
Z:\....\dir. Verify the item's location and try again".

Unfortunately this behavior has returned in 4.19.

-- 
You are receiving this mail because:
You are the assignee for the bug.