Write metadata to extended attributes.