Hi,
On 6 September 2010 10:42, Chris G cl@isbd.net wrote:
On Mon, Sep 06, 2010 at 09:53:02AM +0100, Mark Rogers wrote:
On 04/09/10 10:26, Chris G wrote:
Yes, but that stops rsync working. I want to synchronize a directory full of files with uppercase/mixed names with a directory having the same files with all lowercase names
I'm not sure I have quite understood the use case but have you looked at ciopfs? http://www.brain-dump.org/projects/ciopfs/
This is a FUSE-based file system that maps mixed case files to lower case and allows access to files on the filesystem in a case-insensitive way.
I was composing a serious reply where I was writing that you should edit receiver.c in rsync (because, this kind of change should belong there, together with a command line option), but I fell off my chair in disgust at the sloppy code that comprises rsync.
I think you should give Mark's FUSE solution a go... it beats having to spend hours fixing up rsync [receive_data() or recv_files(), but probably the former, doing a tolower() on fname.... d'oh it's actually line 691, function recv_files() as I was originally writing, where fd2 is opened].
Good luck.
Srdjan