Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Apr 2009 02:45:15 -0500
From:      "James R. Van Artsdalen" <james-freebsd-fs2@jrv.org>
To:        freebsd-fs@freebsd.org
Subject:   zfs recv core dump
Message-ID:  <49F2BF8B.3060603@jrv.org>

next in thread | raw e-mail | index | archive | help
zfs recv dumps core for me with this command:

# zfs send -R -I @snap1 bigtex@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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49F2BF8B.3060603>