rsync and broken symlinks
Dmitry V. Levin
ldv at altlinux.org
Thu Dec 16 12:59:23 GMT 2004
Hi,
On Thu, Dec 16, 2004 at 01:07:35AM -0800, Wayne Davison wrote:
> On Thu, Dec 16, 2004 at 01:38:42PM +0500, Yakov Hrebtov wrote:
> > where is the message -- skipping non-regular file "broken-link"?
>
> I can only imagine that this is some kind of OS misfeature. Try running
> rsync under something like "strace -f" (or your OS's equivalent) and see
> what is going wrong with the system calls. If you see readlink() return
> -1 for the file, that would cause rsync to skip it as non-existent.
Here is strace log for this case:
$ strace -fF -e trace=readlink,access rsync -a src/ dst/
Process 1328 attached
[pid 1328] --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
[pid 1327] access(".", R_OK) = 0
[pid 1327] readlink("broken-link", "missing", 4095) = 7
[pid 1327] access("broken-link", R_OK) = -1 ENOENT (No such file or directory)
Process 1329 attached
[pid 1329] --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
[pid 1329] --- SIGUSR2 (User defined signal 2) @ 0 (0) ---
Process 1329 detached
[pid 1328] --- SIGCHLD (Child exited) @ 0 (0) ---
Process 1328 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20041216/045b6787/attachment.bin
More information about the rsync
mailing list