Add missing zvol_create_mirrors() on zfs_ioc_create()
This commit is contained in:
parent
876a84e867
commit
a602517b63
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/libzfs_core/; revision=248473
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user