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, 836 5, ZFS_SPACE_CHECK_NORMAL)); |
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, |
935 dmu_objset_clone_check, dmu_objset_clone_sync, &doca, 936 5, ZFS_SPACE_CHECK_NORMAL)); |
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 --- |