Description
Implement support in rsync to copy the lustre.lov xattr (Lustre striping) from the source file and store it on the target file before the file is opened in order to preserve the layout. This should be enabled if the --xattrs option is used.
This is similar to the work done for the RHEL tar utility to preserve the file layout, which basically removed the filtering of lustre. xattrs and then restored all xattrs at the time the file is created. Note that the lustre.lov and trusted.lov xattrs are aliases for the same xattr, because non-root users cannot access the trusted. xattrs, but this should be opaque to tar.
Any failure to apply lustre. or trusted. xattrs on the target file should not be considered a fatal error, in case rsync is writing to a non-Lustre filesystem.