On 2023-05-15 18:55, J Doe wrote:

On 2023-05-12, J Doe <gene...@nativemethods.com> wrote:
Hello,

I was configuring Samba on my OpenBSD 7.2 server and wanted to support
iOS/iPad OS and macOS clients.

The documentation for Samba states that the following vfs options are
required to support these clients:

      /etc/samba/smb.conf
          . . .
          vfs = catia fruit streams_xattr

... however, my server is using UFS2 (the default), which I am aware
does not support extended attributes.

OpenBSD doesn't support xattr at all.

Would it be possible to get around that by mounting an ext2 disk image
file on OpenBSD via: vnconfig and: mount and pointing: smb.conf to it ?

No.

You may be able to do something with
https://wiki.samba.org/index.php/Using_the_xattr_tdb_VFS_Module

Hi Stuart,

Thanks for your reply.  Ah, interesting!  I had not spotted that vfs module on the Samba site.

It appears to warn against using it in production, but I will be providing service to 2-3 clients at the most, so I will give it a try and report back on anything interesting I ran into.

Hi Stuart and list,

Just thought I'd post an update about this.  With the following: vfs stanza:

    /etc/samba/smb.conf
        [global]
            vfs objects = catia fruit streams_xattr xattr_tdb

            xattr_tdb:file = /var/samba/macosxattr.tdb

... and then the suggested: fruit config statements on the Samba wiki[1], I am having a better result.

While the Samba wiki does warn about using: xattr_tdb in production, I am servicing between 3-5 clients (iOS and macOS), not all of which are at the same time and it appears to be good.

Thanks,

-J

[1] https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X

Reply via email to