diff options
author | mm <mm@FreeBSD.org> | 2013-03-18 20:22:40 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2013-03-18 20:22:40 +0000 |
commit | 3a10a36ee8940816a53ed53f8b1ca562b85b68a9 (patch) | |
tree | 6d9c1017e83f3fdc22f04eeb34dee8b47332eefe /sys/cddl | |
parent | 09f7f9e4ff3041f8e236af6af32f05f1d181e23d (diff) | |
download | FreeBSD-src-3a10a36ee8940816a53ed53f8b1ca562b85b68a9.zip FreeBSD-src-3a10a36ee8940816a53ed53f8b1ca562b85b68a9.tar.gz |
Add missing zvol_create_mirrors() on zfs_ioc_create()
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c index bb2ead3..96c4ec8 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c @@ -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); } |