Repository navigation
Open
Labels
BugConfirmed incorrect behaviour or failure
Description
Before I hit this issue, the source host (OmniOS) was running v3.5.0 and the destination host (FreeBSD) was running v3.4.1. The problem did arise just after upgrading rsync on the destination host to v3.5.1.
I upgraded both sides to v3.51, but the problem wasn't solved.
Then I tried between tho OmniOS hosts and v3.5.1, here is the (same) result:
# rsync -vvv -arxz /etc/dev [destination]:/var/backups/etc/
opening connection using: ssh [destination] --server -vvvlogDtprxze.iLsfxCIvu . /var/backups/etc/ (7 args)
sending incremental file list
[sender] make_file(dev,*,0)
send_file_list done
[sender] pushing local filters for /etc/dev/
[sender] make_file(dev/.devfsadm_synch_door,*,2)
[sender] make_file(dev/.devlink_db_lock,*,2)
[sender] make_file(dev/.devfsadm_dev.lock,*,2)
[sender] make_file(dev/.devlink_db,*,2)
[sender] make_file(dev/.devname_lookup_door,*,2)
[sender] make_file(dev/.devfsadm_daemon.lock,*,2)
[sender] make_file(dev/reserved_devnames,*,2)
send_files starting
server_recv(2) starting pid=19144
invalid file mode 0150600 for dev/.devfsadm_synch_door [Receiver]
rsync error: protocol incompatibility (code 2) at flist.c(1206) [Receiver=3.5.1]
recv_file_name(dev)
received 1 names
recv_file_list done
[Receiver] _exit_cleanup(code=2, file=flist.c, line=1206): about to call exit(2)
[sender] _exit_cleanup(code=2, file=io.c, line=1930): about to call exit(2)
The problematic file(s) seems to be device inodes:
# ls -la /etc/dev/.devfsadm_synch_door
Drw------- 1 root root 0 Oct 7 12:31 /etc/dev/.devfsadm_synch_door
# stat /etc/dev/.devfsadm_synch_door
File: /etc/dev/.devfsadm_synch_door
Size: 0 Blocks: 0 IO Block: 512 door
Device: 555,0 Inode: 53 Links: 1
Access: (0600/Drw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2026-10-07 12:31:47.267696651 +0200
Modify: 2026-10-07 12:31:47.267696651 +0200
Change: 2026-10-07 12:31:47.267696651 +0200
Birth: -
Removing the "-D" flag (i.e.: using "-rltgo" instead of "-a") does not solve the problem either.
The only way to circumvent the problem so far is to keep a list of device type inodes and exclude them from the sync.
Anyone can help me finding the cause? Thanks!
Activity
andrewhotlab commentedon Oct 30, 2026
It just came up that the inodes causing the trouble are actually "doors", which were already been discussed in this report: "Bug 2670 - rsync does not support Solaris' doorfs".
I guess that rsync simply processed them as regular files until the 3.5.x branch, and something must be changed recently. I worked around the problem by excluding all files of that type I found in the source host, but it would be better to restore the previous behavior IMO.
[-]protocol incompatibility (code 2) at flist.c(1206) [Receiver=3.5.1][/-][+]3.4.3 regression: Solaris doors abort transfers as invalid file modes[/+]steadytao commentedon Oct 31, 2026
This is a 3.4.3 regression from 8112445, not the protocol change.
S_IFDOORis rejected before the existingFT_UNSUPPORTEDpath can skip it and-Dcannot alter the file-list mode.steadytao commentedon Oct 31, 2026
Slightly busy atm but we should admit the known unsupported wire types
0150000and0160000while retaining rejection for other invalid type bits.