DO NOT REPLY [Bug 6576] New: generate_files lists non-existent files

samba-bugs at samba.org samba-bugs at samba.org
Mon Jul 27 07:08:18 MDT 2009


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

           Summary: generate_files lists non-existent files
           Product: rsync
           Version: 3.0.6
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: stlman at poczta.fm
         QAContact: rsync-qa at samba.org


When I run rsync -X (see below) remote rsync reports (xattrs.c:159):
rsync: get_xattr_names: llistxattr("etc",1024) failed: No such file or
directory (2)

the command I enter to start rsync is:

/usr/bin/rsync -aXn --stats --delete --iconv=iso8859-2,utf-8 --link-dest=../1
--password-file /root/rsync/rsync.backup.cred --filter='.
/root/rsync/system.exclude' / backup at 10.1.2.6::vlana/0

vlana module on the remote machine is configured as:

[vlana]
    path = /mnt/sdf1/vlana
    comment = Backup space for Vlana
    read only = false
    fake super = false
    uid = root
    auth users = backup
    secrets file = /etc/rsyncd.secrets
    charset = utf8

when the remote rsync starts it does does:

chroot("/mnt/sdf1/vlana")               = 0
chdir("/")                              = 0

then:

llistxattr("etc", 0x80e2368, 1024) = -1 ENOENT (No such file or directory)

Which is pointless because the directory tree looks like this:
/mnt/sdf1/vlana
\ -0
 |-1
 |-2
and so on.

The numbered directories are incremental hard-linked backups made each day and
there won't be "etc" next to 0,1,2. I assume it should be either "1/etc"
(because of --link-dest) or "0/etc". Why rsync omits either prefix?

At the moment I receive the message the stack on the remote machine looks like
this:

[bt] Execution path:
[bt] /mnt/sdf1/rsync/rsync(show_stackframe+0x2d) [0x8085ef4]
[bt] /mnt/sdf1/rsync/rsync [0x8086045]
[bt] /mnt/sdf1/rsync/rsync [0x8086327]
[bt] /mnt/sdf1/rsync/rsync(get_xattr+0x4c) [0x80866f8]
[bt] /mnt/sdf1/rsync/rsync(itemize+0x30f) [0x805b61f]
[bt] /mnt/sdf1/rsync/rsync [0x805da53] <-- this is recv_generator
[bt] /mnt/sdf1/rsync/rsync(generate_files+0x45c) [0x80604c4]
[bt] /mnt/sdf1/rsync/rsync [0x806c9f0]
[bt] /mnt/sdf1/rsync/rsync [0x806cdf3]
[bt] /mnt/sdf1/rsync/rsync(start_server+0xbd) [0x806cefd]
[bt] /mnt/sdf1/rsync/rsync [0x808dceb]
[bt] /mnt/sdf1/rsync/rsync(start_daemon+0x2ad) [0x808e0ad]
[bt] /mnt/sdf1/rsync/rsync(start_accept_loop+0x2c9) [0x8080f63]
[bt] /mnt/sdf1/rsync/rsync(daemon_main+0x14e) [0x808e40e]
[bt] /mnt/sdf1/rsync/rsync(main+0x487) [0x806e04d]
[bt] /lib/libc.so.6(__libc_start_main+0xe0) [0xb7df6390]
[bt] /mnt/sdf1/rsync/rsync [0x8050841]


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