RsyncProject / rsync

An open source utility that provides fast incremental file transfer. It also has useful features for backup and restore operations among many other use cases.
https://rsync.samba.org
Other
2.74k stars 328 forks source link

rsync xattr not copying the +F flag (casefold) #165

Open arabek opened 3 years ago

arabek commented 3 years ago

Rsync ignores the +F flag while copying flags using -avX options.

[ arab: ~ ]$ lsattr ~/.wine/drive_c/
--------------e--F---- /home/arab/.wine/drive_c/Program Files
--------------e--F---- /home/arab/.wine/drive_c/ejay
--------------e--F---- /home/arab/.wine/drive_c/ProgramData
--------------e--F---- /home/arab/.wine/drive_c/windows
--------------e--F---- /home/arab/.wine/drive_c/users
--------------e--F---- /home/arab/.wine/drive_c/Program Files (x86)
rsync -avX /home/arab/.wine/. /home/arab/.wine2/.
[ arab: ~ ]$ lsattr /home/arab/.wine2/drive_c/
--------------e------- ./ProgramData
--------------e------- ./Program Files
--------------e------- ./windows
--------------e------- ./users
--------------e------- ./ejay
--------------e------- ./Program Files (x86)

Expected result: the flag +F should be copied aswell.

ext4 filesystem was modifed with: tune2fs -O casefold /dev/nvme0n1p4 which points to /home while it was unmounted

Eucyon commented 1 year ago

I'm having the same issue with the "i" flag (immutable). Are they copied at all?

By the way, these are not xattrs, but file attributes (https://en.wikipedia.org/wiki/File_attribute).