Add missing zvol_create_mirrors() on zfs_ioc_create()

This commit is contained in:
Martin Matuska 2013-03-18 20:22:40 +00:00
parent 876a84e867
commit a602517b63
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/libzfs_core/; revision=248473

View File

@ -3268,6 +3268,10 @@ zfs_ioc_create(const char *fsname, nvlist_t *innvl, nvlist_t *outnvl)
if (error != 0)
(void) dmu_objset_destroy(fsname, B_FALSE);
}
#ifdef __FreeBSD__
if (error == 0 && type == DMU_OST_ZVOL)
zvol_create_minors(fsname);
#endif
return (error);
}