Photos.app xattr: how vital are they??? (strange behaviour of rsync -X on ExFat drive)
Can somebody explain how extended attributes are used by Photos.app? This appears to be a plausible origin of the nightmare I'm in since 3 months with my libraries.
Maybe you don't know it, but the files in a .photoslibrary bundle have extended attributes. These can be seen with $ ls -l@, eg:
MacBookJO/V/B/P/M/2/1/1/20181210-061108> ls -l@ IMG_3212.JPG
-rw-r--r--@ 1 orloff staff 3144231 18 nov 09:49 IMG_3212.JPG
com.apple.cscachefs 70
com.apple.quarantine 21
Now, these attributes are usually handled on non-HFS+ external devices by storing the extended attributes in a 'hidden' file named ._IMG_3212.JPG next to IMG_3212.JPG .
This is what is happening when making a remote backup of the library (with rsync -X) on an ExFat disk connected to my Wifi server: any file.jpg or directory comes together with ._file.jpg or ._directory files.
However, when I backup on the same disk directly connected by USB to my computer to save backup time, with the same "rsync -X" command, the first thing it does is to delete all ._* files. This is because it can apparently save the extended attributes in the ExFat filesystem when connected by USB.
Maybe this is a bug in rsync? My version is 3.1.3...
But I come back to my original question: how is this information, eg quanrantine, used by Photos? What happens if it is wrong, and how to fix it?