Accessing ZFS snapshots over SMB
Ralph Böhme
slow at samba.org
Tue Dec 5 22:29:51 UTC 2017
On Tue, Dec 05, 2017 at 11:20:09PM +0100, David Disseldorp via samba-technical wrote:
> On Tue, 5 Dec 2017 10:28:09 +0100, Ralph Böhme via samba-technical wrote:
>
> > smb: \> ls .zfs/*
> > NT_STATUS_NOT_SUPPORTED listing \.zfs\*
> >
> > This happens because the acl() library call fails with ENOTSUP on the snapshot
> > directories. This could be easily fixed by synthesizing an ACL based on the
> > POSIX mode, much like the getfacl() command on FreeBSD does. The attached WIP
> > patch implements this.
> >
> > Question: do we want this?
>
> Given that it's self-contained within the zfs module, I don't have
> problem with it. Please add a comment in the fallback path explaining
> why it's done, and then feel free to push with:
> Reviewed-by: David Disseldorp <ddiss at suse.de>
thanks David. I wanted to give the FreeBSD/FreeNAS guys some more time to
comment. I was suspecting there might be a reason they've not patched it
yet. Generally they will be using shadow_copy2 for Windows clients, but that
doesn't work with Macs, so I wonder why they've never run into this broken use
case before...
-slow
--
Ralph Boehme, Samba Team https://samba.org/
Samba Developer, SerNet GmbH https://sernet.de/en/samba/
More information about the samba-technical
mailing list