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

[Samba] vfs_fruit: xattr imcompatible with netatalk

226 views
Skip to first unread message

HAT

unread,
Mar 11, 2015, 10:40:04 AM3/11/15
to
Hi.
I'm testing samba 4.2.0 vfs_fruit on Fedora Server 22-alpha.
I confirmed that ResourceFork and FinderInfo are compatible with
Netatalk 3.1.7. However, EAs are incompatible.
The character ":" in EA name is wrong.
The EAs are not seen from clients.

smb.conf:
[test2]
path = /export/test2
writable = yes
vfs objects = catia fruit streams_xattr
fruit:locking = netatalk
streams_xattr:prefix = user.
streams_xattr:store_stream_type = no
kernel oplocks = no

On OS X:
$ cd ~/test
$ xattr ICONandEA.txt
com.apple.FinderInfo
com.apple.ResourceFork
com.apple.TextEncoding
com.apple.metadata:kMDItemFinderComment

Copy from OS X to Fedora via Netatalk.
On Fedora:
$ cd /export/test2
$ ls -a1
./
../
.DS_Store
._ICONandEA.txt
ICONandEA.txt
$ getfattr ICONandEA.txt
# file: ICONandEA.txt
user.com.apple.TextEncoding
user.com.apple.metadata:kMDItemFinderComment
user.org.netatalk.Metadata

Copy from OS X to Fedora via Samba.
On Fedora:
$ cd /export/test2
$ ls -a
./
../
.DS_Store
._ICONandEA.txt
ICONandEA.txt
$ getfattr ICONandEA.txt
# file: ICONandEA.txt
user.com.apple.TextEncoding
user.com.apple.metadata kMDItemFinderComment
user.org.netatalk.Metadata

The character ":" is wrong.

On OS X via Samba:
$ cd /Volumes/test2
$ xattr ICONandEA.txt
com.apple.FinderInfo
com.apple.ResourceFork

The EAs are not seen from clients.

How can I handle EAs?

--
HAT
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Ralph Böhme

unread,
Mar 11, 2015, 12:40:03 PM3/11/15
to
Hi HAT!

Nice to meet you over here... ;)

not sure, but the colon in xattr names is probably not handled
correctly at this point. Can you please file a bugreport so we can
track this?

-Ralph

--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kon...@sernet.de

HAT

unread,
Mar 13, 2015, 11:10:03 AM3/13/15
to
> not sure, but the colon in xattr names is probably not handled
> correctly at this point. Can you please file a bugreport so we can
> track this?

Bug 11162
https://bugzilla.samba.org/show_bug.cgi?id=11162

--
HAT

HAT

unread,
Dec 17, 2015, 11:50:04 AM12/17/15
to
Hi,

>> not sure, but the colon in xattr names is probably not handled
>> correctly at this point. Can you please file a bugreport so we can
>> track this?
>
> Bug 11162
> https://bugzilla.samba.org/show_bug.cgi?id=11162

I tested samba 4.3.1 on Fedora 23 and rawhide.
The colon problem is not corrected yet.

$ getfattr Mew.txt
# file: Mew.txt
user.com.apple.TextEncoding
user.com.apple.metadatakMDItemFinderComment


$ rpm -qi samba
Name : samba
Epoch : 2
Version : 4.3.1
Release : 3.fc23
Architecture: x86_64
Install Date: Wed Nov 25 01:34:40 2015
Group : System Environment/Daemons
Size : 1900499
License : GPLv3+ and LGPLv3+
Signature : RSA/SHA256, Thu Nov 19 08:38:33 2015, Key ID 32474cf834ec9cba
Source RPM : samba-4.3.1-3.fc23.src.rpm
Build Date : Wed Nov 18 20:29:52 2015
Build Host : buildvm-25.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager : Fedora Project
Vendor : Fedora Project
URL : http://www.samba.org/
Summary : Server and Client software to interoperate with Windows machines
Description :
Samba is the standard Windows interoperability suite of programs for Linux and Unix.


smb.conf:
vfs objects = catia fruit streams_xattr
fruit:locking = netatalk
streams_xattr:prefix = user.
streams_xattr:store_stream_type = no
kernel oplocks = No

Reindl Harald

unread,
Dec 17, 2015, 12:00:04 PM12/17/15
to


Am 17.12.2015 um 17:14 schrieb HAT:
>>> not sure, but the colon in xattr names is probably not handled
>>> correctly at this point. Can you please file a bugreport so we can
>>> track this?
>>
>> Bug 11162
>> https://bugzilla.samba.org/show_bug.cgi?id=11162
>
> I tested samba 4.3.1 on Fedora 23 and rawhide.
> The colon problem is not corrected yet.
>
> $ getfattr Mew.txt
> # file: Mew.txt
> user.com.apple.TextEncoding
> user.com.apple.metadatakMDItemFinderComment
>
> smb.conf:
> vfs objects = catia fruit streams_xattr
> fruit:locking = netatalk
> streams_xattr:prefix = user.
> streams_xattr:store_stream_type = no
> kernel oplocks = No

ouch - sounds we should wait with replace netatalk completly with samba
without losing any attributes and ressource forks

signature.asc

Ralph Boehme

unread,
Dec 17, 2015, 12:10:04 PM12/17/15
to
iirc you need fruit:encoding = native

--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kon...@sernet.de

HAT

unread,
Dec 17, 2015, 12:30:04 PM12/17/15
to
Thu, 17 Dec 2015 18:05:33 +0100, Ralph Boehme <r...@sernet.de>:
> iirc you need fruit:encoding = native

Solved. Thanks!
I'm looking forward to netatalk 3.1.8.

$ getfattr Mew.txt
# file: Mew.txt
user.com.apple.TextEncoding
user.com.apple.metadata:kMDItemFinderComment

smb.conf:
vfs objects = catia fruit streams_xattr
fruit:locking = netatalk
fruit:encoding = native
streams_xattr:prefix = user.
streams_xattr:store_stream_type = no
kernel oplocks = No

--
HAT

Ralph Boehme

unread,
Dec 17, 2015, 12:50:04 PM12/17/15
to
On Fri, Dec 18, 2015 at 02:20:54AM +0900, HAT wrote:
> Thu, 17 Dec 2015 18:05:33 +0100, Ralph Boehme <r...@sernet.de>:
> > iirc you need fruit:encoding = native
>
> Solved. Thanks!
> I'm looking forward to netatalk 3.1.8.
>
> $ getfattr Mew.txt
> # file: Mew.txt
> user.com.apple.TextEncoding
> user.com.apple.metadata:kMDItemFinderComment
>
> smb.conf:
> vfs objects = catia fruit streams_xattr
> fruit:locking = netatalk
> fruit:encoding = native
> streams_xattr:prefix = user.
> streams_xattr:store_stream_type = no

ahhhhhhh, so many options. Sorry about that! :(

Cheerio!
-slow

--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kon...@sernet.de

HAT

unread,
Dec 17, 2015, 1:10:05 PM12/17/15
to
vfs_fruit and Netatalk are still incompatible when last char is dot.

On OS X:

$ cd /Volumes/NetatalkVol/
$ ls
abc.txt.

$ cd /Volumes/SambaVol/
$ ls
AL3JQG~9


vfs_fruit should convert last dot to 0xf029.
<http://support.microsoft.com/kb/q117258/>

--
HAT

Ralph Boehme

unread,
Dec 17, 2015, 1:50:04 PM12/17/15
to
On Fri, Dec 18, 2015 at 02:57:44AM +0900, HAT wrote:
> vfs_fruit and Netatalk are still incompatible when last char is dot.
>
> On OS X:
>
> $ cd /Volumes/NetatalkVol/
> $ ls
> abc.txt.
>
> $ cd /Volumes/SambaVol/
> $ ls
> AL3JQG~9
>
>
> vfs_fruit should convert last dot to 0xf029.
> <http://support.microsoft.com/kb/q117258/>

https://bugzilla.samba.org/show_bug.cgi?id=11206

Cheerio!
-slow

--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kon...@sernet.de

HAT

unread,
Dec 26, 2015, 12:20:04 PM12/26/15
to
Hi,
I'm testing samba 4.3.3 vfs_fruit on Fedora rawhide.

The EAs are not seen from clients yet.

smb.conf:
path = /export/test1/
writable = yes
vfs objects = catia fruit streams_xattr
fruit:locking = netatalk
fruit:encoding = native
streams_xattr:prefix = user.
streams_xattr:store_stream_type = no

On OS X:
$ cd ~/test
$ xattr ICONandEA.txt
com.apple.FinderInfo
com.apple.ResourceFork
com.apple.TextEncoding
com.apple.metadata:kMDItemFinderComment

Copy from OS X to Fedora via Samba.
On Fedora:
$ cd /export/test1
$ ls -a
./
../
.DS_Store
._ICONandEA.txt
ICONandEA.txt
$ getfattr ICONandEA.txt
# file: ICONandEA.txt
user.com.apple.TextEncoding
user.com.apple.metadata:kMDItemFinderComment
user.org.netatalk.Metadata

On OS X via Samba:
$ cd /Volumes/test1

Rowland penny

unread,
Dec 26, 2015, 12:30:03 PM12/26/15
to
On 26/12/15 17:08, HAT wrote:
> Hi,
> I'm testing samba 4.3.3 vfs_fruit on Fedora rawhide.
>
> The EAs are not seen from clients yet.
>
> smb.conf:
> path = /export/test1/
> writable = yes
> vfs objects = catia fruit streams_xattr
> fruit:locking = netatalk
> fruit:encoding = native
> streams_xattr:prefix = user.
> streams_xattr:store_stream_type = no

Is that your entire smb.conf or just the share ?

Rowland

HAT

unread,
Dec 26, 2015, 12:40:04 PM12/26/15
to
Sat, 26 Dec 2015 17:22:56 +0000, Rowland penny <rpe...@samba.org>:
> On 26/12/15 17:08, HAT wrote:
>> Hi,
>> I'm testing samba 4.3.3 vfs_fruit on Fedora rawhide.
>>
>> The EAs are not seen from clients yet.
>>
>> smb.conf:
>> path = /export/test1/
>> writable = yes
>> vfs objects = catia fruit streams_xattr
>> fruit:locking = netatalk
>> fruit:encoding = native
>> streams_xattr:prefix = user.
>> streams_xattr:store_stream_type = no
>
> Is that your entire smb.conf or just the share ?

$ /etc/samba# cat /etc/samba/smb.conf | grep -v \; | grep -v \# | grep -v ^$
[global]
workgroup = LOCALNET
server string = %h
dos charset = CP932
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = smbpasswd
load printers = yes
cups options = raw
[Test 1]
path = /export/test1/
writable = yes
vfs objects = catia fruit streams_xattr
fruit:locking = netatalk
fruit:encoding = native
streams_xattr:prefix = user.
streams_xattr:store_stream_type = no

--
HAT

Ralph Boehme

unread,
Dec 26, 2015, 1:30:03 PM12/26/15
to
you need "ea support = yes".

-Ralph

--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kon...@sernet.de

Rowland penny

unread,
Dec 26, 2015, 1:50:02 PM12/26/15
to
OK, so you are trying to connect from apple clients to a share on a
Samba standalone server, do your apple users exist as Unix & Samba users
on the Samba server?

Rowland

HAT

unread,
Dec 26, 2015, 10:40:03 PM12/26/15
to
> you need "ea support = yes".

ok! solved.

On Fedora: -----------------------------------------------------

$ cat /etc/samba/smb.conf | grep -v \; | grep -v \# | grep -v ^$
[global]
workgroup = LOCALNET
server string = %h
dos charset = CP932
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = smbpasswd
load printers = yes
cups options = raw
[Test 1]
path = /export/test1/
writable = yes
vfs objects = catia fruit streams_xattr
fruit:locking = netatalk
fruit:encoding = native
streams_xattr:prefix = user.
streams_xattr:store_stream_type = no
ea support = yes

$ getfattr ICONandEA.txt
# file: ICONandEA.txt
user.com.apple.TextEncoding
user.com.apple.metadata:kMDItemFinderComment
user.org.netatalk.Metadata

On OS X: --------------------------------------------------------

$ xattr ICONandEA.txt
com.apple.FinderInfo
com.apple.ResourceFork
com.apple.TextEncoding
org.netatalk.Metadata
com.apple.metadata:kMDItemFinderComment

On Windows 7: ---------------------------------------------------------

Z:\>dir /r ICONandEA.txt
Volume in drive Z is Test 1
Volume Serial Number is DA11-AA00

Directory of Z:\

2010/01/10 00:14 225 ICONandEA.txt
60 ICONandEA.txt:AFP_AfpInfo:$DATA
4,764 ICONandEA.txt:AFP_Resource:$DATA
15 ICONandEA.txt:com.apple.TextEncoding:$DATA
401 ICONandEA.txt:org.netatalk.Metadata:$DATA
81 ICONandEA.txt:com.apple.metadata?kMDItemFinderComment:$DATA
1 File(s) 225 bytes
0 Dir(s) 59,059,187,712 bytes free

---------------------------------------------------------

I'm going to test "ea = samba" of netatalk 3.1.8dev.

Thanks.

--
HAT

HAT

unread,
Dec 26, 2015, 10:40:03 PM12/26/15
to
>> [global]
>> workgroup = LOCALNET
>> server string = %h
>> dos charset = CP932
>> log file = /var/log/samba/log.%m
>> max log size = 50
>> security = user
>> passdb backend = smbpasswd
>> load printers = yes
>> cups options = raw
>> [Test 1]
>> path = /export/test1/
>> writable = yes
>> vfs objects = catia fruit streams_xattr
>> fruit:locking = netatalk
>> fruit:encoding = native
>> streams_xattr:prefix = user.
>> streams_xattr:store_stream_type = no
>>
>
> OK, so you are trying to connect from apple clients to a share on a
> Samba standalone server, do your apple users exist as Unix & Samba
> users on the Samba server?

Yes.
If no, I can't test this.
--
HAT
0 new messages