From owner-freebsd-current@FreeBSD.ORG Mon Feb 7 14:02:41 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1525F106566B; Mon, 7 Feb 2011 14:02:41 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2FDC68FC25; Mon, 7 Feb 2011 14:02:40 +0000 (UTC) Received: by bwz12 with SMTP id 12so4848468bwz.13 for ; Mon, 07 Feb 2011 06:02:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=1vIefVEhN8TzSWOVggk8aBhSDGh8YqWWtoaESoJQ/vw=; b=Q97ijCU4xs6uqUNVIGfympUYBi31GOZrFtDmIAzXAJS2wxHaO/RK/ekyvvu+sX2mB4 K2YfmqM3UG5IFx5zDwwSYr6fS/dU5pyPCUDcenqhsWHid8JingCIWqCy1o2MAQx3FaPk rxlxQKbs1f0AqUls6C6u7LmK7tkCo0pzdgYig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=dqYEo3w9PdWKMEzH5fnjT/6FUTRnRWkRPLT96wk5etsmOfAhEqgkJeHu4I2p/2jF1R CRxwRnBVomKVg1Ira2c+qEl5DczsBe74KBA3JREtbsVhHGtdjI3q8x5Ra7yE04JkvPaY Mp6f7o15wR8b45uopCUB2/1CPyfiqlm2YDIqs= Received: by 10.204.82.96 with SMTP id a32mr15192987bkl.179.1297087358368; Mon, 07 Feb 2011 06:02:38 -0800 (PST) Received: from localhost (tor-exit-router35-readme.formlessnetworking.net [199.48.147.35]) by mx.google.com with ESMTPS id f20sm2048340bkf.4.2011.02.07.06.02.21 (version=SSLv3 cipher=RC4-MD5); Mon, 07 Feb 2011 06:02:35 -0800 (PST) From: Anonymous To: Pawel Jakub Dawidek References: <20101213214556.GC2038@garage.freebsd.pl> <8662upxg76.fsf@gmail.com> Date: Mon, 07 Feb 2011 17:01:55 +0300 In-Reply-To: <8662upxg76.fsf@gmail.com> (Anonymous's message of "Mon, 20 Dec 2010 06:42:53 +0300") Message-ID: <86lj1s3pv0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-current@FreeBSD.org Subject: Re: Next ZFSv28 patchset ready for testing. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2011 14:02:41 -0000 Anonymous writes: > Pawel Jakub Dawidek writes: > >> The new patchset is ready for testing: >> >> http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2 >> > > `-e' option in zdb(8) now looks under /dev/dsk by default > > $ zdb -ec blah > > Configuration for import: > vdev_children: 1 > version: 6 > vdev_tree: > children[0]: > phys_path: '/dev/gptid/A-B-C-D-E' > path: '/dev/dsk/gptid/A-B-C-D-E' > zdb: can't open 'blah': No such file or directory > Exit 1 How about below diff then? %% --- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c~ +++ cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c @@ -1129,7 +1129,11 @@ zpool_find_import_impl(libzfs_handle_t * char *end, **dir = iarg->path; size_t pathleft; nvlist_t *ret = NULL; +#ifdef sun static char *default_dir = "/dev/dsk"; +#else + static char *default_dir = "/dev"; +#endif pool_list_t pools = { 0 }; pool_entry_t *pe, *penext; vdev_entry_t *ve, *venext; %% > > $ zdb -p /dev -ec blah > > Traversing all blocks to verify metadata checksums and verify nothing leaked ... > Assertion failed: (mp->initialized == B_TRUE), file /usr/src/cddl/lib/libzpool/../../../cddl/contrib/opensolaris/lib/libzpool/common/kernel.c, line 130. > Exit 134 I can't reproduce anymore, at least as of ch188544.