dev entries for cloned zvol don't show up until after reboot
Ruslan Bukin
br at bsdpad.com
Mon Jun 10 17:29:04 UTC 2013
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 at somesnap
> ls /dev/zvol/pool # witness no new entries
> zfs clone pool/somvol at 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
More information about the freebsd-fs
mailing list