[Samba] Error copying files with extended attributes to Windows clients

Ralph Böhme slow at samba.org
Sun Nov 5 12:26:06 UTC 2017


On Sun, Nov 05, 2017 at 07:03:28AM -0500, Andrew Berry wrote:
> I just upgraded to 4.7.1 to fix an unrelated bug with deleting
> directories for OS X clients, and it looks like this bug has been fixed
> too. I re-enabled ea support, and copies work. It does look like some
> attrs are lost in the process, but that's probably because they are
> larger than some NTFS limit?
> 
>  getfattr vlc-2.2.2.dmg
> # file: vlc-2.2.2.dmg
> user.com.apple.diskimages.fsck
> user.com.apple.diskimages.recentcksum
> user.com.apple.metadata:kMDItemDownloadedDate
> user.com.apple.metadata:kMDItemWhereFroms
> user.com.apple.quarantine
> user.org.netatalk.Metadata
> 
> # Copied the file off the share and back with Windows 10 Explorer
> 
> $ getfattr vlc-2.2.2-copied.dmg
> # file: vlc-2.2.2-copied.dmg
> user.COM.APPLE.DISKIMAGES.FSCK
> user.COM.APPLE.DISKIMAGES.RECENTCKSUM
> user.COM.APPLE.QUARANTINE
> user.ORG.NETATALK.METADATA

looks like it's now silently skipping xattrs with a colon in their name instead
of erroring out.

Also, why on earth are the parts of the xattr names after the user namespace
prefix all uppercased?

-slow

-- 
Ralph Boehme, Samba Team       https://samba.org/
Samba Developer, SerNet GmbH   https://sernet.de/en/samba/



More information about the samba mailing list