DO NOT REPLY [Bug 7618] symlinks and --link-dest

samba-bugs at samba.org samba-bugs at samba.org
Sat Aug 14 15:46:39 MDT 2010


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





------- Comment #12 from the_majkl at seznam.cz  2010-08-14 16:46 CST -------
And straces when without -i:

First run: 
root at zaloha pokus]# grep .tsm rsync1.traced
[pid  9169] lstat("home/zumrova/.tsm", 0x7fff2ff0e040) = -1 ENOENT (No such
file or directory)
[pid  9169] symlink("/usr/tsm/.tsm", "home/zumrova/.tsm") = 0
[pid  9169] lstat("home/zumrova/.tsm", {st_mode=S_IFLNK|0777, st_size=13, ...})
= 0
[pid  9169] lchown("home/zumrova/.tsm", 0, 3) = 0
[pid  9170] write(1, "home/zumrova/.tsm -> /usr/tsm/.t"..., 35home/zumrova/.tsm
-> /usr/tsm/.tsm

# mv hpuh hpuh1

second run, with --link-dest:

[root at zaloha pokus]# grep .tsm rsync2.traced
[pid  9426] lstat("/root/pokus/hpuh1/home/zumrova/.tsm", {st_mode=S_IFLNK|0777,
st_size=13, ...}) = 0
[pid  9426] readlink("/root/pokus/hpuh1/home/zumrova/.tsm", "/usr/tsm/.tsm",
4095) = 13
[pid  9426] lstat("/root/pokus/hpuh1/home/zumrova/.tsm", {st_mode=S_IFLNK|0777,
st_size=13, ...}) = 0
[pid  9427] write(1, "home/zumrova/.tsm -> /usr/tsm/.t"..., 35home/zumrova/.tsm
-> /usr/tsm/.tsm
[root at zaloha pokus]#


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