kern/184092: zfs zvol devices are not appearing till after reimport of pool
Andriy Gapon
avg at FreeBSD.org
Sun Feb 16 17:00:03 UTC 2014
The following reply was made to PR kern/184092; it has been noted by GNATS.
From: Andriy Gapon <avg at FreeBSD.org>
To: d at delphij.net, Christopher Harrison <harrison at glsan.com>,
freebsd-gnats-submit at FreeBSD.org
Cc:
Subject: Re: kern/184092: zfs zvol devices are not appearing till after reimport
of pool
Date: Sun, 16 Feb 2014 18:52:20 +0200
on 19/11/2013 20:50 Xin Li said the following:
> I think Andriy (cc'ed) have fixed a similar issue. A quick glance at the
> code suggests maybe we can use something like this:
I am not sure if I have ever fixed this -- if you have a reference then please
share with :-) But the change looks good to me and I also think that Steve
Hartland proposed this change as well.
Thanks! And sorry for the delay with my reply.
> Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
> =================================================================== ---
> sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c (revision
> 258350) +++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
> (working copy) @@ -3298,6 +3298,10 @@ zfs_ioc_clone(const char *fsname,
> nvlist_t *innvl, if (error != 0) (void) dsl_destroy_head(fsname); } +#ifdef
> __FreeBSD__ + if (error == 0) +
> zvol_create_minors(fsname); +#endif return (error); }
>
> Can you confirm if this helps?
>
> (I think we should use a better way to trigger zvol_create_minor, maybe via
> a devfs lookup hook?)
>
> Cheers,
>
--
Andriy Gapon
More information about the freebsd-bugs
mailing list