Re: OpenBSD support for xattr on file systems other than UFS ?
On 2023-05-15 18:55, J Doe wrote: On 2023-05-12, J Doe 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
Re: OpenBSD support for xattr on file systems other than UFS ?
On 2023-05-12 03:22, Stuart Henderson wrote: On 2023-05-12, J Doe 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. - J
Re: OpenBSD support for xattr on file systems other than UFS ?
On 2023-05-15 17:16, Lyndon Nerenberg (VE7TFX/VE6BBM) wrote: Marcus MERIGHI writes: vfs = catia fruit streams_xattr I run a Samba server that does not have these options set - but successfully serves iOS/macOS clients. You need those extra attributes if you want to use your Samba share for TimeMachine backups. --lyndon Hi Lyndon, Thank you for your reply. I figured as much for TimeMachine, but I seem to be running into issues saving from basic apps (ex: TextEdit), and dragging and dropping files to a Samba share without the: fruit vfs module. This particular installation I won't be using TimeMachine. - J
Re: OpenBSD support for xattr on file systems other than UFS ?
On 2023-05-12 03:24, Marcus MERIGHI wrote: Hello, gene...@nativemethods.com (J Doe), 2023.05.12 (Fri) 04:47 (CEST): 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 I run a Samba server that does not have these options set - but successfully serves iOS/macOS clients. Apart from that, smb.conf(5) does not have the parameter "vfs", only "vfs object"/"vfs objects" (which are aliases). Marcus Hi Marcus, Yes, you are correct. That line should have been: /etc/samba/smb.conf [global] vfs objects = catia fruit streams_xattr . . . In regards to running Samba without the: fruit vfs module for Apple clients, what version of macOS/iOS/iPad OS are your clients running ? I have found that running a current version of macOS (Ventura 13.3.1 (a)) and using the TextEdit app to save to the Samba share does *not* work in an install *without* fruit (I tested a Samba config with: fruit on a Ubuntu VM for comparison) - J
Re: OpenBSD support for xattr on file systems other than UFS ?
Marcus MERIGHI writes: > > vfs = catia fruit streams_xattr > > I run a Samba server that does not have these options set - but > successfully serves iOS/macOS clients. You need those extra attributes if you want to use your Samba share for TimeMachine backups. --lyndon
Re: OpenBSD support for xattr on file systems other than UFS ?
Hello, gene...@nativemethods.com (J Doe), 2023.05.12 (Fri) 04:47 (CEST): > 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 I run a Samba server that does not have these options set - but successfully serves iOS/macOS clients. Apart from that, smb.conf(5) does not have the parameter "vfs", only "vfs object"/"vfs objects" (which are aliases). Marcus
Re: OpenBSD support for xattr on file systems other than UFS ?
On 2023-05-12, J Doe 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
OpenBSD support for xattr on file systems other than UFS ?
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. 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 ? Thanks, -J