samba-bugs@samba.org
2005-Jun-13 15:41 UTC
[Bug 2793] New: xattr support fails with multiples attributes
https://bugzilla.samba.org/show_bug.cgi?id=2793 Summary: xattr support fails with multiples attributes Product: rsync Version: 2.6.5 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: pierre@tuxfamily.org QAContact: rsync-qa@samba.org When I try to use -X option with a patched rsync (using XFS as file system), I obtain this when a file have multiple user attributes: [root@Chakra data]# echo "test" > test_pierre/test.file [root@Chakra data]# setfattr -n user.test1 -v testval1 test_pierre/test.file [root@Chakra data]# setfattr -n user.test2 -v testval2 test_pierre/test.file [root@Chakra data]# getfattr test_pierre/test.file # file: test_pierre/test.file user.test1 user.test2 [root@Chakra data]# rsync -AavX -P -W --numeric-ids --delete --force test_pierre/ gargamel:/data/test_pierre/ building file list ... 17608 files to consider ./ test.file 5 100% 0.00kB/s 0:00:00 (1, 0.0% of 17608) logs_test/ .test.file.cAW83c: rsync_xal_set: lsetxattr system.posix_acl_default failed: Not a directory sent 559013 bytes received 78 bytes 65775.41 bytes/sec total size is 5611168219 speedup is 10036.23 rsync error: some files could not be transferred (code 23) at main.c(791) File is transmitted, but without its attributes. If I remove an attribute, transmit seems to works fine... [root@Chakra data]# setfattr -x user.test1 test_pierre/test.file [root@Chakra data]# getfattr test_pierre/test.file # file: test_pierre/test.file user.test2 [root@Chakra data]# rsync -AavX -P -W --numeric-ids --delete --force test_pierre/ gargamel:/data/test_pierre/ building file list ... 17608 files to consider ./ test.file 5 100% 0.00kB/s 0:00:00 (1, 0.0% of 17608) logs_test/ sent 559013 bytes received 78 bytes 58851.68 bytes/sec total size is 5611168219 speedup is 10036.23 ...but the attribute value and name is not ever kept in the other side : [root@Chakra test_pierre]# getfattr -n user.test4 test.file3 # file: test.file3 user.test4="testval4" [root@Chakra data]# rsync -AavX -P -W --numeric-ids --delete --force test_pierre/ gargamel:/data/test_pierre/ building file list ... 17608 files to consider test.file3 5 100% 0.00kB/s 0:00:00 (1, 0.0% of 17608) logs_test/ sent 559008 bytes received 72 bytes 65774.12 bytes/sec total size is 5611168219 speedup is 10036.43 [root@Gargamel test_pierre]# getfattr test.file3 # file: test.file3 user.ARTE [root@Gargamel test_pierre]# getfattr -n user.ARTE test.file3 # file: test.file3 user.ARTE="h" [root@Gargamel test_pierre]# getfattr -n user.test4 test.file3 test.file3: user.test4: No such attribute I set an attribute named "ARTE" for an other file in an other sync before. I can't understand why it uses it now. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.