From owner-freebsd-fs@FreeBSD.ORG Sat Apr 25 07:45:29 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C5351065674 for ; Sat, 25 Apr 2009 07:45:29 +0000 (UTC) (envelope-from james-freebsd-fs2@jrv.org) Received: from mail.jrv.org (adsl-70-243-84-13.dsl.austtx.swbell.net [70.243.84.13]) by mx1.freebsd.org (Postfix) with ESMTP id 5311B8FC20 for ; Sat, 25 Apr 2009 07:45:29 +0000 (UTC) (envelope-from james-freebsd-fs2@jrv.org) Received: from kremvax.housenet.jrv (kremvax.housenet.jrv [192.168.3.124]) by mail.jrv.org (8.14.3/8.14.3) with ESMTP id n3P7jFgm090957 for ; Sat, 25 Apr 2009 02:45:15 -0500 (CDT) (envelope-from james-freebsd-fs2@jrv.org) Authentication-Results: mail.jrv.org; domainkeys=pass (testing) header.from=james-freebsd-fs2@jrv.org DomainKey-Signature: a=rsa-sha1; s=enigma; d=jrv.org; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:subject: content-type:content-transfer-encoding; b=fFhGQlTA8PYvNCJE0M7nZGwXONC2MJglkrNdODr2toPuY3eq+4SFZT5Undwq8HQYO MZ5SDv26Wp7vRjpisvNl/UxT/tCC1f/GinBKsUaQM1GGREkVeJvsw7wfblCbKiZyHQE fvjoSalYGFExqODAV60h1k0nuYzTj+xGPTwmIf4= Message-ID: <49F2BF8B.3060603@jrv.org> Date: Sat, 25 Apr 2009 02:45:15 -0500 From: "James R. Van Artsdalen" User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: zfs recv core dump X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Apr 2009 07:45:29 -0000 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?