Date: Mon, 10 Jun 2013 16:48:46 +0000 From: Ruslan Bukin <br@bsdpad.com> To: Steve Wills <swills@FreeBSD.org> Cc: fs@FreeBSD.org Subject: Re: dev entries for cloned zvol don't show up until after reboot Message-ID: <20130610164846.GA10127@mail.bsdpad.com> In-Reply-To: <51A2B533.8030504@FreeBSD.org> References: <8ea8b9c8074fd122f78c5eaa3b289805.squirrel@mouf.net> <51A2B533.8030504@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 27, 2013 at 01:21:55AM +0000, Steve Wills wrote: > On 05/24/13 17:56, Steve Wills wrote: > > Hi, > > > > I've noticed that if I make zvol, create a snapshot of it, then clone > > that, the /dev/zvol/* entries for it don't show up until after I reboot. > > This is on r250925. Is this a known bug? > > To add a bit more detail to this, the steps are: > > zfs create -V 1G pool/somevol > ls /dev/zvol/pool # witness somevol entries > zfs create pool/somevol@somesnap > ls /dev/zvol/pool # witness no new entries > zfs clone pool/somvol@somesnap pool/anothervol > ls /dev/zvol/pool # again witness no new entries > reboot > ls /dev/zvol/pool # witness missing entries appearing > > I'll go ahead and submit a PR too in case that helps. this patch for 9.1-stable works for me --- zfs_ioctl.c 2013-06-09 23:54:22.386708932 +0400 +++ zfs_ioctl.c 2013-06-10 00:21:58.161708460 +0400 @@ -3299,6 +3299,12 @@ if (error != 0) (void) dsl_destroy_head(fsname); } + +#ifdef __FreeBSD__ + if (error == 0) + zvol_create_minors(fsname); +#endif + return (error); } -Ruslan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130610164846.GA10127>