-
I recently had a bad problem with my macOS client hanging when I tried to copy some files and directories from there to a server running Netatalk. I narrowed it down to a file, As far as I can tell from my investigations, Netatalk adds the I am tempted to prevent future problems by deleting an So, are And, are they ever valid in the client-side macOS view of files delivered via AFP on a Netatalk server? If Netatalk adds such an xattr to a server-side file, for its own purposes, will it let the client see and delete that xattr? And if so, does any data loss result from the client deleting it? For what it's worth, this is what the extended attribute in question contained:
It looks to me as if this extended attribute is 401 bytes long. And what I see in Netatalk source code,
So maybe the content of this xattr is corrupt (short by 1 byte), and maybe that caused Netatalk to react in a way which in turn caused my macOS client to hang. But diagnosing that is not terribly important to me, if I can confidently delete such xattrs from all my client files. By the way, I have had my most important digital files on servers, delivered by Netatalk to AFP macOS clients, for decades. I use Netatalk in this way every day. My deepest thanks to everyone who has worked on this software, for all the value they have delivered to me. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
They are not used for any purposes by a client, so it can be safely removed. The extended attribute contains AppleDouble formatted data for FinderInfo and various internal Netatalk CNID database information for a given file. Is |
Beta Was this translation helpful? Give feedback.
They are not used for any purposes by a client, so it can be safely removed. The extended attribute contains AppleDouble formatted data for FinderInfo and various internal Netatalk CNID database information for a given file.
Is
ea = samba
set? That would explain the off by one byte ea error. What version of Netatalk is running on the server? Some additional hardening of the handling of "private" server-side extended attributes was done for 4.1. One shouldn't be able to copy an extended attribute calledorg.netatalk.Metadata
to the server at all. Testing with a macOS client, this resulted in an "unable to copy extended attributes" error with Netatalk 4.1.2 and aborted the entire file copy …