libzfs_core.c (296519) | libzfs_core.c (298472) |
---|---|
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 --- 204 unchanged lines hidden (view full) --- 213 } 214#endif 215 fnvlist_pack_free(packed, size); 216 free((void *)(uintptr_t)zc.zc_nvlist_dst); 217 return (error); 218} 219 220int | 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 --- 204 unchanged lines hidden (view full) --- 213 } 214#endif 215 fnvlist_pack_free(packed, size); 216 free((void *)(uintptr_t)zc.zc_nvlist_dst); 217 return (error); 218} 219 220int |
221lzc_create(const char *fsname, dmu_objset_type_t type, nvlist_t *props) | 221lzc_create(const char *fsname, enum lzc_dataset_type type, nvlist_t *props) |
222{ 223 int error; 224 nvlist_t *args = fnvlist_alloc(); | 222{ 223 int error; 224 nvlist_t *args = fnvlist_alloc(); |
225 fnvlist_add_int32(args, "type", type); | 225 fnvlist_add_int32(args, "type", (dmu_objset_type_t)type); |
226 if (props != NULL) 227 fnvlist_add_nvlist(args, "props", props); 228 error = lzc_ioctl(ZFS_IOC_CREATE, fsname, args, NULL); 229 nvlist_free(args); 230 return (error); 231} 232 233int --- 587 unchanged lines hidden --- | 226 if (props != NULL) 227 fnvlist_add_nvlist(args, "props", props); 228 error = lzc_ioctl(ZFS_IOC_CREATE, fsname, args, NULL); 229 nvlist_free(args); 230 return (error); 231} 232 233int --- 587 unchanged lines hidden --- |