update flags to preserve extended attributes