Create zvol devices on zfs clone.

While big and shiny patch is not ready, it is better to have something.

PR:		kern/178999
MFC after:	1 week
This commit is contained in:
Alexander Motin 2014-04-11 11:56:16 +00:00
parent 67eb1bdac2
commit f6e1dc83c3

View File

@ -3352,6 +3352,10 @@ zfs_ioc_clone(const char *fsname, nvlist_t *innvl, nvlist_t *outnvl)
if (error != 0)
(void) dsl_destroy_head(fsname);
}
#ifdef __FreeBSD__
if (error == 0)
zvol_create_minors(fsname);
#endif
return (error);
}