Deleted Added
full compact
dmu_objset.c (268657) dmu_objset.c (269006)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 818 unchanged lines hidden (view full) ---

827 doca.doca_name = name;
828 doca.doca_cred = CRED();
829 doca.doca_flags = flags;
830 doca.doca_userfunc = func;
831 doca.doca_userarg = arg;
832 doca.doca_type = type;
833
834 return (dsl_sync_task(name,
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 818 unchanged lines hidden (view full) ---

827 doca.doca_name = name;
828 doca.doca_cred = CRED();
829 doca.doca_flags = flags;
830 doca.doca_userfunc = func;
831 doca.doca_userarg = arg;
832 doca.doca_type = type;
833
834 return (dsl_sync_task(name,
835 dmu_objset_create_check, dmu_objset_create_sync, &doca, 5));
835 dmu_objset_create_check, dmu_objset_create_sync, &doca,
836 5, ZFS_SPACE_CHECK_NORMAL));
836}
837
838typedef struct dmu_objset_clone_arg {
839 const char *doca_clone;
840 const char *doca_origin;
841 cred_t *doca_cred;
842} dmu_objset_clone_arg_t;
843

--- 82 unchanged lines hidden (view full) ---

926{
927 dmu_objset_clone_arg_t doca;
928
929 doca.doca_clone = clone;
930 doca.doca_origin = origin;
931 doca.doca_cred = CRED();
932
933 return (dsl_sync_task(clone,
837}
838
839typedef struct dmu_objset_clone_arg {
840 const char *doca_clone;
841 const char *doca_origin;
842 cred_t *doca_cred;
843} dmu_objset_clone_arg_t;
844

--- 82 unchanged lines hidden (view full) ---

927{
928 dmu_objset_clone_arg_t doca;
929
930 doca.doca_clone = clone;
931 doca.doca_origin = origin;
932 doca.doca_cred = CRED();
933
934 return (dsl_sync_task(clone,
934 dmu_objset_clone_check, dmu_objset_clone_sync, &doca, 5));
935 dmu_objset_clone_check, dmu_objset_clone_sync, &doca,
936 5, ZFS_SPACE_CHECK_NORMAL));
935}
936
937int
938dmu_objset_snapshot_one(const char *fsname, const char *snapname)
939{
940 int err;
941 char *longsnap = kmem_asprintf("%s@%s", fsname, snapname);
942 nvlist_t *snaps = fnvlist_alloc();

--- 865 unchanged lines hidden ---
937}
938
939int
940dmu_objset_snapshot_one(const char *fsname, const char *snapname)
941{
942 int err;
943 char *longsnap = kmem_asprintf("%s@%s", fsname, snapname);
944 nvlist_t *snaps = fnvlist_alloc();

--- 865 unchanged lines hidden ---