Since this is on-topic for a Netatalk thread, here are the nitty gritty details on what is stored with each AppleDouble backend:
The "old" AppleDouble v2 system:
All metadata for files is stored in a separate hidden directory called
.AppleDouble with equivalently named files. These files follow the AppleDouble format as outlined by Apple and store the following:
- File Name ("Long" name)
- Finder Comments
- File Date Information
- FinderInfo (filetype/creator, label, etc.)
- DID (unused by Netatalk)
- AFP File Info (additional AFP specific file attributes)
- "Short" File Name (unused by Netatalk, for MS-DOS 8.3 files)
- ProDOS Info (unused by Netatalk, generated on the fly by afpd)
- UNIX Dev ID (Netatalk Private Field)
- UNIX Inode ID (Netatalk Private Field)
- UNIX Syn ID (Netatalk Private Field)
- CNID of file (Netatalk Private Field)
- Resource Fork
The new extended attributes system:
With this system, metadata is split into two places, an extended attribute in each file called
org.netatalk.Metadata, and if the file has a resource fork, a matching file prefixed with "
._". On Solaris systems with zfs, this file won't be present and the resource fork is stored as an extended attribute called
org.netatalk.ResourceFork. On Linux, these EAs will be prefixed with "
user."
The metadata EA stores the following information in AppleDouble format:
- FinderInfo (filetype/creator, label, etc.)
- Finder Comments
- File Date Information
- AFP File Info (additional AFP specific file attributes)
- UNIX Dev ID (Netatalk Private Field)
- UNIX Inode ID (Netatalk Private Field)
- UNIX Syn ID (Netatalk Private Field)
- CNID of file (Netatalk Private Field)
The ._ file stores the following information in AppleDouble format conforming to Apple's spec for these files:
- FinderInfo (filetype/creator, label, etc.) This data isn't used by Netatalk, it is only pulled from the metadata EA.
- Resource fork
If running Netatalk 4.1 or later on macOS, the Resource fork and FinderInfo are natively stored in the file system and used. If setting up a new Netatalk installation, this is the preferred back end since it can be made to interoperate with Samba, and has proper macOS integration.