diff options
author | mm <mm@FreeBSD.org> | 2013-03-19 22:14:50 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2013-03-19 22:14:50 +0000 |
commit | e3be864a3f6e9be93a76b0a36ba9596d73ce6f61 (patch) | |
tree | 7f93babd469e0636cd81d1fdf8e7cac0d109f13b /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c | |
parent | 7c87858955593be19a80e57b7353b09f5587ae9b (diff) | |
download | FreeBSD-src-e3be864a3f6e9be93a76b0a36ba9596d73ce6f61.zip FreeBSD-src-e3be864a3f6e9be93a76b0a36ba9596d73ce6f61.tar.gz |
Run zvol_create_minors() on snapshot creation
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c index aee5407..d224326 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c @@ -1287,6 +1287,15 @@ dsl_dataset_snapshot(nvlist_t *snaps, nvlist_t *props, nvlist_t *errors) fnvlist_free(suspended); } +#ifdef __FreeBSD__ +#ifdef _KERNEL + for (pair = nvlist_next_nvpair(snaps, NULL); pair != NULL; + pair = nvlist_next_nvpair(snaps, pair)) { + char *snapname = nvpair_name(pair); + zvol_create_minors(snapname); + } +#endif +#endif return (error); } |