OmegaPhil
2014-Feb-21 16:14 UTC
Partial file creation tripping up on aufs volume - tries to use a reserved name
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm backing up a file named 'wh.txt' with the destination an aufs volume - rsync creates a partial filename like '.wh.txt.M8ucDx', which results in an Operation not permitted (1) error - aufs reserves '.wh.*' names for whiteout records I think. Other than ignoring the problem and using --inplace, it doesnt look like I can influence how rsync names its temporary files - is this worth a feature request? Its just this one file causing a problem so far, so its not a big deal - - just wondered if there was a better way. Thanks - -- Libre software on Github: https://github.com/OmegaPhil FSF member #9442 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTB3t7AAoJEBfSPH39wvOPgdAQAKKHA8bTWwvRoz258Yemrrki wZjNB/2yKfRgKO8BjZTIxXFaLJ+m39lptTEkRK+XmOAAzwRNbVhhb4wIdbM8gP7o vEd7y1E70D4ik4+SWEgkr89fh1XkRwr1sFjzG2gctwHAmX/w2pURw5nQHDh2Sh5I z7vrlapnJbOisn6372SGbKAdPeaWN4LrRccudkH5U44h8acEuF7NyuAOJYd5egZh 8j080+0YM8k+yAfYJs6A606c7WyJKyY8vr755NoHlbmRm5LRuXS4mi4nRTYNn1+1 20OL9wIOq8m7sAxe4xAO+KqVO/3T8oy6pPCToxYT+yDd3m17ejqFMAgwVJA7oL/P UK2L8S2r29EblplaFViS7aVL0Jt9iYODZYyi3/zwmhnfH2i0ACVK+wHp4VXxzOpL 4MmcXQ5uflD9q/AbPe5BibLwkrwt3gPYH0Wkn0/xQe/jHhwwKhJ0FxrQZorTHPiv 7WwVTbahOSr5jMNuITyaZ6AjGGDscKLL5kytALJv57f2SXrQuZSLhzoO5F6/y/uh JLLa44MXJKTHUiGV3xGiPQm3pEJ3vLi5wDcWxjYARFRXRuiJZt7r934FuWMJ0Jw0 gptUV1P+F/kIftyo0KVm0PrqBFvSsZ9diogJnEVpTCxf8HvymqnsQmp33g1Mx+z1 8PjmKsalLRAxeqBx4tOH =wpct -----END PGP SIGNATURE-----
Wayne Davison
2014-Feb-24 18:35 UTC
Partial file creation tripping up on aufs volume - tries to use a reserved name
On Fri, Feb 21, 2014 at 8:14 AM, OmegaPhil <omegaphil at gmail.com> wrote:> Other than ignoring the problem and using --inplace, it doesnt look like I > can influence how rsync names its temporary files - is this worth a feature > request? >Outside of using --inplace, you can only request that rsync put its temp files into a different directory (--temp-dir=FOO), but that isn't that nice of an option to use if the temp-dir isn't on the same filesystem as the destination dirs (since it's best to be able to rename the files into place w/o copying). An option to change the prefix from "." to something else might be reasonable. Or you could look at the get_tmpname() function in receiver.c and tweak this line to use some other single character (e.g. ':', '_', or whatever): fnametmp[length++] = '.'; That would allow you to do your copying w/o error at least. If you want to make it longer than a single char, the code would need to change to check if the extra chars would fit w/o overflow. ..wayne.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20140224/5c0f3739/attachment.html>