Merge configure --use-xattr and --use-xattr-ref functionality
|Reported by:||bonefish||Owned by:||bonefish|
|Has a Patch:||no||Platform:||All|
When xattr support is available, the attribute emulation should behave like the current
--use-xattr, i.e. store the attributes in untyped attributes. Only when for a file the attribute size limit is hit, the emulation should -- for that file only -- fall back to the
--use-xattr-ref behavior, i.e. tag the file with a unique ID and store the attributes in separate files. A similar fallback mechanism could be used for symlinks, for which non-super-users cannot write attributes on Linux.
The proposed algorithm should help to reduce the number of attribute files needed (and thus potentially leaked) significantly, since there shouldn't be that many files for which we actually encounter the common attribute size limit.