Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31538 - [rsync] name too long when syncing from xfs to ecryptfs sitting on ext4

Attached to Project: Arch Linux
Opened by Dominik Kozaczko (minder) - Friday, 14 September 2012, 18:14 GMT
Last edited by Pierre Schmitz (Pierre) - Saturday, 02 November 2013, 23:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I tried to sync (backup/copy) a directory sitting on xfs volume to a mounted ecryptfs directory sitting on ext4 filesystem.

COMMAND:

# rsync -aAX SRC_dir DEST_dir

RESULT:

[...]
rsync: mkstemp "a_really_long_filename_consisting_from_normal_characters.dZ8QKX" failed: File name too long (36)

sent 104975323 bytes received 28713 bytes 55690.29 bytes/sec
total size is 270370389466 speedup is 2574.86
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]0


I then tried to copy this file using mc and it was copied without problems.

Additional info:
* package version(s)
rsync 3.0.9-4
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Saturday, 02 November 2013, 23:02 GMT
Reason for closing:  Upstream
Comment by Pierre Schmitz (Pierre) - Saturday, 15 September 2012, 08:03 GMT
This seems to work fine here. Or does it only happen when copying to you encrypted volume? Anyway, this is very unlikely a packaging bug.
Comment by Dominik Kozaczko (minder) - Saturday, 15 September 2012, 10:18 GMT
After little testing I can confirm that:
1. It only happens when rsyncing to a volume encrypted via ecryptfs.
2. The longest filename that can be synced to an ecryptfsed volume is 135 characters long (rsync temporary file name is 8 chars longer), so
2a. The longest filename on ecryptfs volume is 143 chars long.
3. Volumes encrypted via dm-luks are *not* affected.
4. The longest filename that can be touched is 255 chars on xfs, ext4 and reiserfs volumes although I managed to sync 255-char-long filenames to those volumes despite the fact that rsync uses extra 8 chars for temporary file names.

Looks more like ecryptfs issue now.

This probably depends on the way ecryptfs stores filenames. Is any workaround possible?
Comment by Greg (dolby) - Saturday, 17 November 2012, 04:14 GMT
Please report to rsync upstream.

Loading...