DO NOT REPLY [Bug 3752] rsync unusable with EncFS filesystem

samba-bugs at samba.org samba-bugs at samba.org
Sun May 3 16:44:09 GMT 2009


https://bugzilla.samba.org/show_bug.cgi?id=3752





------- Comment #4 from micheala at jacey.org  2009-05-03 11:44 CST -------
(In reply to comment #2)
> The problem is indeed with EncFS/FUSE...  e.g mv xxx yyy changes the mod time
> 
> Solved by modifying "syscall.c"
> 
> int do_rename(const char *fname1, const char *fname2)
> {
>         if (dry_run) return 0;
>         RETURN_ERROR_IF_RO_OR_LO;
> //      return rename(fname1, fname2);
>  {
>         int x1;
>         struct stat s1;
>         x1 = stat(fname1, &s1);
>         if (x1 != 0)
>                 return x1;
>         x1 = rename(fname1, fname2);
>         if (x1 != 0)
>                 return x1;
>         return set_modtime(fname2, s1.st_mtime, s1.st_mode);
>  }
> }
> 

I can confirm the bug has not been fixed in rsync 3.0.5 & encfs 1.4.2.

The patch still works with rsync 3.0.5

Download source from http://www.samba.org/ftp/rsync/src/rsync-3.0.5.tar.gz

Extract to /tmp
cd /tmp
vi syscall.c
Search for do_rename. Apply patch & save
./configure
make install
cp /usr/local/bin/rysnc /usr/bin


-- 
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.


More information about the rsync mailing list