Date: Mon, 10 Jan 2011 14:35:48 -0800 From: Stef Walter <stef@memberwebs.com> To: freebsd-fs@freebsd.org Subject: Re: 'zfs list' does abort in make_dataset_handle Message-ID: <4D2B89C4.8080300@memberwebs.com> In-Reply-To: <4D2B8616.4000503@memberwebs.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 01/10/2011 02:20 PM, Stef Walter wrote:
> After a failed zfs receive, zfs list now aborts in make_dataset_handle()
> in libzfs.so.2.
The following patch suppresses the problem, and may give a clear
indication of how the problem manifests.
Cheers,
Stef
[-- Attachment #2 --]
--- cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c.orig 2011-01-10 22:29:45.000000000 +0000
+++ cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c 2011-01-10 22:32:11.000000000 +0000
@@ -454,6 +454,10 @@
else if (zhp->zfs_dmustats.dds_type == DMU_OST_ZFS)
zhp->zfs_head_type = ZFS_TYPE_FILESYSTEM;
- else
- abort();
+ else {
+ fprintf (stderr, "WARNING: bad head type: %s\n", zhp->zfs_name);
+ free(zhp);
+ errno = ENOENT;
+ return (NULL);
+ }
if (zhp->zfs_dmustats.dds_is_snapshot)
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D2B89C4.8080300>
