zfs recv core dump
James R. Van Artsdalen
james-freebsd-fs2 at jrv.org
Sat Apr 25 07:45:29 UTC 2009
zfs recv dumps core for me with this command:
# zfs send -R -I @snap1 bigtex at snap2 | ssh back zfs recv -vFd bigtex
The problem is in libzfs_sendrecv.c here:
/* check for rename */
if ((stream_parent_fromsnap_guid != 0 &&
stream_parent_fromsnap_guid != parent_fromsnap_guid) ||
strcmp(strrchr(fsname, '/'),
strrchr(stream_fsname, '/')) != 0) {
fsname and stream_fsname are both "bigtex", no slash, so both strrchr
calls return 0, and strcmp (0, 0) segfaults.
Any ideas? Is anyone trying to use zfs send/recv to replicate pools?
More information about the freebsd-fs
mailing list