[Bug 2933] regression with hardlinked devices

samba-bugs at samba.org samba-bugs at samba.org
Mon Aug 1 00:01:12 GMT 2005


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





------- Additional Comments From noreply at cpe-24-95-90-2.columbus.res.rr.com  2005-07-31 17:01 -------
added a fuller test case...

note freebsd link(2) currently doesn't hardlink
symlinks or directories. there's also something
called whiteout. all conceivably link(2)able but
moot at the moment.

so this would apply to all other types excluding
regular files.

ls -liT srcdir
240854 lrwxrwx---   1 root  wheel         1 Jul 31 05:07:23 2005 a -> b
240848 -rw-r-----   1 root  wheel         0 Jul 31 05:07:23 2005 b
240860 prw-rw----   1 root  wheel         0 Jul 31 19:06:16 2005 fifo0
242281 prw-rw----   2 root  wheel         0 Jul 31 19:04:09 2005 fifohard1
242281 prw-rw----   2 root  wheel         0 Jul 31 19:04:09 2005 fifohard2
240853 -rw-rw----   1 root  wheel         0 Jul 31 19:06:16 2005 file0
240852 -rw-rw----   2 root  wheel         0 Jul 31 00:58:38 2005 filehard1
240852 -rw-rw----   2 root  wheel         0 Jul 31 00:58:38 2005 filehard2
242266 crw-rw----   1 root  wheel    2,   2 Jul 31 19:06:16 2005 null0
242484 crw-rw----   2 root  wheel    2,   2 Jul 31 19:05:55 2005 nullhard1
242484 crw-rw----   2 root  wheel    2,   2 Jul 31 19:05:55 2005 nullhard2
240846 srwxrwx---   1 root  wheel         0 Jul 31 19:06:16 2005 socket0
242485 srwxrwx---   2 root  wheel         0 Jul 31 19:02:04 2005 sockethard1
242485 srwxrwx---   2 root  wheel         0 Jul 31 19:02:04 2005 sockethard2

ls -liT dstdir
242500 lrwxrwxrwx   1 root  wheel         1 Jul 31 19:24:38 2005 a -> b
242518 -rw-r-----   1 root  wheel         0 Jul 31 05:07:23 2005 b
242504 prw-rw----   1 root  wheel         0 Jul 31 19:06:16 2005 fifo0
242507 prw-rw----   1 root  wheel         0 Jul 31 19:04:09 2005 fifohard1
242511 prw-rw----   1 root  wheel         0 Jul 31 19:04:09 2005 fifohard2
242519 -rw-rw----   1 root  wheel         0 Jul 31 19:06:16 2005 file0
242520 -rw-rw----   2 root  wheel         0 Jul 31 00:58:38 2005 filehard1
242520 -rw-rw----   2 root  wheel         0 Jul 31 00:58:38 2005 filehard2
242512 crw-rw----   1 root  wheel    2,   2 Jul 31 19:06:16 2005 null0
242513 crw-rw----   1 root  wheel    2,   2 Jul 31 19:05:55 2005 nullhard1
242514 crw-rw----   1 root  wheel    2,   2 Jul 31 19:05:55 2005 nullhard2
242515 srwxrwx---   1 root  wheel         0 Jul 31 19:06:16 2005 socket0
242516 srwxrwx---   1 root  wheel         0 Jul 31 19:02:04 2005 sockethard1
242517 srwxrwx---   1 root  wheel         0 Jul 31 19:02:04 2005 sockethard2

i also vaguely recall that user/group/perm/mtime
updates to non-regular files [hardlinked and/or not?]
may be recreating them on new inodes as opposed
to just updating those bits. will confirm this
behavior later.


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