[Bug 6116] Cannot access files in exposed shadow drive in version 3.0.5

samba-bugs at samba.org samba-bugs at samba.org
Tue Apr 19 19:54:21 MDT 2011


Leon V. <leonv at vaultnow.com> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
            Version|3.0.5                       |3.0.7
         Resolution|INVALID                     |

--- Comment #4 from Leon V. <leonv at vaultnow.com> 2011-04-20 01:54:20 UTC ---
I hope I am not over-stepping any boundaries with the re-open, but I am now
convinced that there is an rsync problem.

I have recently been working on an rsync implementation using shadows on a
Windows 7 64 bit machine.  The new work uses diskshadow to create the shadows
and expose them as drive letters.  I hit the same problem - cygwin shell can cd
into /cygdrive/G (the exposed drive letter) and see everything in it, but rsync
fails with 
    rsync: change_dir "/cygdrive/g" failed: No such file or directory (2)

The --from-files for testing contained

In testing, I removed the . in the path (leaving /cygdrive/g/Downloads/) and
the rsync worked (although it put the files in a location preceeded but the
cygdrive/g/, but I expected that).  I took that to mean that rsync could,
indeed, access the shadow (G:) drive.

Since the error says 
    rsync: change_dir "/cygdrive/g" failed: No such file or directory (2)
I decided to dig into the source code and see what I could figure out.  I am,
at best, a hack C programmer, but I worked through the source code enough to
find change_dir, and I believe that function uses chdir(), so I decided to see
if a simple C program can chdir into /cygdrive/G.  

I wrote a very simple C program, and it could, indeed chdir into /cygdir/G and
open files there-in.  This would seem to indicate that something in the rsync
change_dir is malfunctioning.  

I wish I had sufficient skills to compile and debug this, but I seem to have
hit the end of my abilities.

Please feel free to contact or email me with any questions.


Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the rsync mailing list