Searched refs:zc (Results 1 - 25 of 58) sorted by relevance

123

/illumos-gate/usr/src/lib/pyzfs/common/
H A Dioctl.c63 ioctl_with_cmdstr(int ioc, zfs_cmd_t *zc) argument
68 zc->zc_history = (uint64_t)(uintptr_t)cmdstr;
69 err = ioctl(zfsdevfd, ioc, zc);
202 add_ds_props(zfs_cmd_t *zc, PyObject *nvl) argument
204 dmu_objset_stats_t *s = &zc->zc_objset_stats;
215 ioctl_with_dstnv(int ioc, zfs_cmd_t *zc) argument
223 zc->zc_nvlist_dst_size = nvsz;
224 zc->zc_nvlist_dst = (uintptr_t)nvbuf;
226 if (ioctl(zfsdevfd, ioc, zc) == 0) {
229 errno = nvlist_unpack(nvbuf, zc
248 zfs_cmd_t zc = { 0 }; local
284 zfs_cmd_t zc = { 0 }; local
306 zfs_cmd_t zc = { 0 }; local
327 zfs_cmd_t zc = { 0 }; local
365 zfs_cmd_t zc = { 0 }; local
384 zfs_cmd_t zc = { 0 }; local
449 zfs_cmd_t zc = { 0 }; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_ioctl.c311 static int zfs_ioc_userspace_upgrade(zfs_cmd_t *zc);
312 static int zfs_ioc_id_quota_upgrade(zfs_cmd_t *zc);
367 history_str_get(zfs_cmd_t *zc) argument
371 if (zc->zc_history == 0)
375 if (copyinstr((void *)(uintptr_t)zc->zc_history,
446 zfs_log_history(zfs_cmd_t *zc) argument
451 if ((buf = history_str_get(zc)) == NULL)
454 if (spa_open(zc->zc_name, &spa, FTAG) == 0) {
468 zfs_secpolicy_none(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
479 zfs_secpolicy_read(zfs_cmd_t *zc, nvlist_ argument
744 zfs_secpolicy_set_fsacl(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
761 zfs_secpolicy_rollback(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
769 zfs_secpolicy_send(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
805 zfs_secpolicy_send_new(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
813 zfs_secpolicy_deleg_share(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
837 zfs_secpolicy_share(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
847 zfs_secpolicy_smb_acl(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
892 zfs_secpolicy_destroy(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
903 zfs_secpolicy_destroy_snaps(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
965 zfs_secpolicy_rename(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
972 zfs_secpolicy_promote(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1020 zfs_secpolicy_recv(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1048 zfs_secpolicy_snapshot(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1079 zfs_secpolicy_bookmark(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1104 zfs_secpolicy_remap(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1112 zfs_secpolicy_destroy_bookmarks(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1153 zfs_secpolicy_log_history(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1165 zfs_secpolicy_create_clone(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1194 zfs_secpolicy_config(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1207 zfs_secpolicy_diff(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1223 zfs_secpolicy_inject(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1230 zfs_secpolicy_inherit_prop(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1246 zfs_secpolicy_userspace_one(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1281 zfs_secpolicy_userspace_many(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1296 zfs_secpolicy_userspace_upgrade(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1304 zfs_secpolicy_hold(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1328 zfs_secpolicy_release(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1349 zfs_secpolicy_load_key(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1357 zfs_secpolicy_change_key(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1367 zfs_secpolicy_tmp_snapshot(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1468 put_nvlist(zfs_cmd_t *zc, nvlist_t *nvl) argument
1568 zfs_ioc_pool_create(zfs_cmd_t *zc) argument
1653 zfs_ioc_pool_destroy(zfs_cmd_t *zc) argument
1664 zfs_ioc_pool_import(zfs_cmd_t *zc) argument
1702 zfs_ioc_pool_export(zfs_cmd_t *zc) argument
1716 zfs_ioc_pool_configs(zfs_cmd_t *zc) argument
1741 zfs_ioc_pool_stats(zfs_cmd_t *zc) argument
1772 zfs_ioc_pool_tryimport(zfs_cmd_t *zc) argument
1801 zfs_ioc_pool_scan(zfs_cmd_t *zc) argument
1825 zfs_ioc_pool_freeze(zfs_cmd_t *zc) argument
1839 zfs_ioc_pool_upgrade(zfs_cmd_t *zc) argument
1860 zfs_ioc_pool_get_history(zfs_cmd_t *zc) argument
1892 zfs_ioc_pool_reguid(zfs_cmd_t *zc) argument
1906 zfs_ioc_dsobj_to_dsname(zfs_cmd_t *zc) argument
1920 zfs_ioc_obj_to_path(zfs_cmd_t *zc) argument
1950 zfs_ioc_obj_to_stats(zfs_cmd_t *zc) argument
1971 zfs_ioc_vdev_add(zfs_cmd_t *zc) argument
2021 zfs_ioc_vdev_remove(zfs_cmd_t *zc) argument
2039 zfs_ioc_vdev_set_state(zfs_cmd_t *zc) argument
2081 zfs_ioc_vdev_attach(zfs_cmd_t *zc) argument
2102 zfs_ioc_vdev_detach(zfs_cmd_t *zc) argument
2117 zfs_ioc_vdev_split(zfs_cmd_t *zc) argument
2152 zfs_ioc_vdev_setpath(zfs_cmd_t *zc) argument
2169 zfs_ioc_vdev_setfru(zfs_cmd_t *zc) argument
2186 zfs_ioc_objset_stats_impl(zfs_cmd_t *zc, objset_t *os) argument
2228 zfs_ioc_objset_stats(zfs_cmd_t *zc) argument
2256 zfs_ioc_objset_recvd_props(zfs_cmd_t *zc) argument
2304 zfs_ioc_objset_zplprops(zfs_cmd_t *zc) argument
2370 zfs_ioc_dataset_list_next(zfs_cmd_t *zc) argument
2427 zfs_ioc_snapshot_list_next(zfs_cmd_t *zc) argument
2611 zfs_cmd_t *zc; local
2873 zfs_ioc_set_prop(zfs_cmd_t *zc) argument
2920 zfs_ioc_inherit_prop(zfs_cmd_t *zc) argument
2987 zfs_ioc_pool_set_props(zfs_cmd_t *zc) argument
3032 zfs_ioc_pool_get_props(zfs_cmd_t *zc) argument
3071 zfs_ioc_set_fsacl(zfs_cmd_t *zc) argument
3120 zfs_ioc_get_fsacl(zfs_cmd_t *zc) argument
3884 zfs_ioc_destroy(zfs_cmd_t *zc) argument
4170 zfs_ioc_rename(zfs_cmd_t *zc) argument
4523 zfs_cmd_t *zc; local
5018 zfs_ioc_recv(zfs_cmd_t *zc) argument
5102 zfs_ioc_send(zfs_cmd_t *zc) argument
5192 zfs_ioc_send_progress(zfs_cmd_t *zc) argument
5236 zfs_ioc_inject_fault(zfs_cmd_t *zc) argument
5250 zfs_ioc_clear_fault(zfs_cmd_t *zc) argument
5256 zfs_ioc_inject_list_next(zfs_cmd_t *zc) argument
5270 zfs_ioc_error_log(zfs_cmd_t *zc) argument
5292 zfs_ioc_clear(zfs_cmd_t *zc) argument
5377 zfs_ioc_pool_reopen(zfs_cmd_t *zc) argument
5410 zfs_ioc_promote(zfs_cmd_t *zc) argument
5477 zfs_ioc_userspace_one(zfs_cmd_t *zc) argument
5508 zfs_ioc_userspace_many(zfs_cmd_t *zc) argument
5544 zfs_ioc_userspace_upgrade(zfs_cmd_t *zc) argument
5591 zfs_ioc_id_quota_upgrade(zfs_cmd_t *zc) argument
5666 zfs_ioc_share(zfs_cmd_t *zc) argument
5773 zfs_ioc_next_obj(zfs_cmd_t *zc) argument
5799 zfs_ioc_tmp_snapshot(zfs_cmd_t *zc) argument
5834 zfs_ioc_diff(zfs_cmd_t *zc) argument
5861 zap_cursor_t zc; local
5878 zfs_ioc_smb_acl(zfs_cmd_t *zc) argument
6110 zfs_ioc_space_written(zfs_cmd_t *zc) argument
7128 zfs_cmd_t *zc; local
[all...]
H A Dddt_zap.c114 zap_cursor_t zc; local
126 zap_cursor_init_noprefetch(&zc, os, object);
128 zap_cursor_init_serialized(&zc, os, object, *walk);
130 if ((error = zap_cursor_retrieve(&zc, &za)) == 0) {
142 zap_cursor_advance(&zc);
143 *walk = zap_cursor_serialize(&zc);
145 zap_cursor_fini(&zc);
H A Dzap_micro.c1386 zap_cursor_init_impl(zap_cursor_t *zc, objset_t *os, uint64_t zapobj, argument
1389 zc->zc_objset = os;
1390 zc->zc_zap = NULL;
1391 zc->zc_leaf = NULL;
1392 zc->zc_zapobj = zapobj;
1393 zc->zc_serialized = serialized;
1394 zc->zc_hash = 0;
1395 zc->zc_cd = 0;
1396 zc->zc_prefetch = prefetch;
1399 zap_cursor_init_serialized(zap_cursor_t *zc, objset_ argument
1410 zap_cursor_init(zap_cursor_t *zc, objset_t *os, uint64_t zapobj) argument
1420 zap_cursor_init_noprefetch(zap_cursor_t *zc, objset_t *os, uint64_t zapobj) argument
1426 zap_cursor_fini(zap_cursor_t *zc) argument
1442 zap_cursor_serialize(zap_cursor_t *zc) argument
1464 zap_cursor_retrieve(zap_cursor_t *zc, zap_attribute_t *za) argument
1529 zap_cursor_advance(zap_cursor_t *zc) argument
[all...]
H A Dzap.c1002 zap_cursor_t zc; local
1009 for (zap_cursor_init(&zc, os, zapobj);
1010 (err = zap_cursor_retrieve(&zc, za)) == 0;
1011 zap_cursor_advance(&zc)) {
1017 zap_cursor_fini(&zc);
1025 zap_cursor_t zc; local
1029 for (zap_cursor_init(&zc, os, fromobj);
1030 zap_cursor_retrieve(&zc, za) == 0;
1031 (void) zap_cursor_advance(&zc)) {
1041 zap_cursor_fini(&zc);
1050 zap_cursor_t zc; local
1075 zap_cursor_t zc; local
1193 fzap_cursor_retrieve(zap_t *zap, zap_cursor_t *zc, zap_attribute_t *za) argument
[all...]
H A Ddsl_deleg.c345 zap_cursor_t zc; local
353 for (zap_cursor_init(&zc, mos, baseza.za_first_integer);
354 zap_cursor_retrieve(&zc, &za) == 0;
355 zap_cursor_advance(&zc)) {
358 zap_cursor_fini(&zc);
475 zap_cursor_t zc; local
489 for (zap_cursor_init(&zc, mos, jumpobj);
490 zap_cursor_retrieve(&zc, &za) == 0;
491 zap_cursor_advance(&zc)) {
503 zap_cursor_fini(&zc);
676 zap_cursor_t zc; local
739 zap_cursor_t zc; local
[all...]
H A Ddsl_deadlist.c67 zap_cursor_t zc; local
79 for (zap_cursor_init(&zc, dl->dl_os, dl->dl_object);
80 zap_cursor_retrieve(&zc, &za) == 0;
81 zap_cursor_advance(&zc)) {
88 zap_cursor_fini(&zc);
168 zap_cursor_t zc; local
177 for (zap_cursor_init(&zc, os, dlobj);
178 zap_cursor_retrieve(&zc, &za) == 0;
179 zap_cursor_advance(&zc)) {
186 zap_cursor_fini(&zc);
481 zap_cursor_t zc; local
[all...]
H A Dspa_errlog.c165 zap_cursor_t zc; local
172 for (zap_cursor_init(&zc, spa->spa_meta_objset, obj);
173 zap_cursor_retrieve(&zc, &za) == 0;
174 zap_cursor_advance(&zc)) {
177 zap_cursor_fini(&zc);
186 zap_cursor_fini(&zc);
193 zap_cursor_fini(&zc);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_config.c111 zfs_cmd_t zc = { 0 }; local
131 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0)
135 zc.zc_cookie = hdl->libzfs_ns_gen;
136 if (ioctl(hdl->libzfs_fd, ZFS_IOC_POOL_CONFIGS, &zc) != 0) {
142 zcmd_free_nvlists(&zc);
146 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) {
147 zcmd_free_nvlists(&zc);
153 zcmd_free_nvlists(&zc);
159 hdl->libzfs_ns_gen = zc.zc_cookie;
164 if (zcmd_read_dst_nvlist(hdl, &zc,
267 zfs_cmd_t zc = { 0 }; local
[all...]
H A Dlibzfs_pool.c73 zfs_cmd_t zc = { 0 }; local
76 (void) strlcpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name));
78 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0)
81 while (ioctl(hdl->libzfs_fd, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) {
83 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) {
84 zcmd_free_nvlists(&zc);
88 zcmd_free_nvlists(&zc);
93 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) {
94 zcmd_free_nvlists(&zc);
714 zfs_cmd_t zc = { 0 }; local
1179 zfs_cmd_t zc = { 0 }; local
1342 zfs_cmd_t zc = { 0 }; local
1428 zfs_cmd_t zc = { 0 }; local
1535 zfs_cmd_t zc = { 0 }; local
1805 zfs_cmd_t zc = { 0 }; local
2090 zfs_cmd_t zc = { 0 }; local
2838 zfs_cmd_t zc = { 0 }; local
2909 zfs_cmd_t zc = { 0 }; local
2959 zfs_cmd_t zc = { 0 }; local
2994 zfs_cmd_t zc = { 0 }; local
3048 zfs_cmd_t zc = { 0 }; local
3219 zfs_cmd_t zc = { 0 }; local
3317 zfs_cmd_t zc = { 0 }; local
3524 zfs_cmd_t zc = { 0 }; local
3575 zfs_cmd_t zc = { 0 }; local
3627 zfs_cmd_t zc = { 0 }; local
3703 zfs_cmd_t zc = { 0 }; local
3729 zfs_cmd_t zc = { 0 }; local
3747 zfs_cmd_t zc = { 0 }; local
3920 zfs_cmd_t zc = { 0 }; local
4122 zfs_cmd_t zc = { 0 }; local
4221 zfs_cmd_t zc = { 0 }; local
4247 zfs_cmd_t zc = { 0 }; local
4273 zfs_cmd_t zc = { 0 }; local
4376 zfs_cmd_t zc = { 0 }; local
[all...]
H A Dlibzfs_iter.c63 zfs_do_list_ioctl(zfs_handle_t *zhp, int arg, zfs_cmd_t *zc) argument
68 orig_cookie = zc->zc_cookie;
70 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name));
71 rc = ioctl(zhp->zfs_hdl->libzfs_fd, arg, zc);
77 if (zcmd_expand_dst_nvlist(zhp->zfs_hdl, zc) != 0) {
78 zcmd_free_nvlists(zc);
81 zc->zc_cookie = orig_cookie;
108 zfs_cmd_t zc = { 0 }; local
115 if (zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc,
145 zfs_cmd_t zc = { 0 }; local
[all...]
H A Dlibzfs_import.c98 zfs_cmd_t zc = {"\0"}; local
101 if (zcmd_write_conf_nvlist(hdl, &zc, config) != 0)
104 dstbuf_size = MAX(CONFIG_BUF_MINSIZE, zc.zc_nvlist_conf_size * 4);
106 if (zcmd_alloc_dst_nvlist(hdl, &zc, dstbuf_size) != 0) {
107 zcmd_free_nvlists(&zc);
112 &zc)) != 0 && errno == ENOMEM) {
113 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) {
114 zcmd_free_nvlists(&zc);
120 zcmd_free_nvlists(&zc);
124 if (zcmd_read_dst_nvlist(hdl, &zc,
[all...]
H A Dlibzfs_dataset.c319 get_stats_ioctl(zfs_handle_t *zhp, zfs_cmd_t *zc) argument
323 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name));
325 while (ioctl(hdl->libzfs_fd, ZFS_IOC_OBJSET_STATS, zc) != 0) {
327 if (zcmd_expand_dst_nvlist(hdl, zc) != 0) {
345 zfs_cmd_t zc = { 0 }; local
348 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0)
351 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name));
353 while (ioctl(hdl->libzfs_fd, ZFS_IOC_OBJSET_RECVD_PROPS, &zc) !
376 put_stats_zhdl(zfs_handle_t *zhp, zfs_cmd_t *zc) argument
408 zfs_cmd_t zc = { 0 }; local
434 make_dataset_handle_common(zfs_handle_t *zhp, zfs_cmd_t *zc) argument
470 zfs_cmd_t zc = { 0 }; local
497 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
514 make_dataset_simple_handle_zc(zfs_handle_t *pzhp, zfs_cmd_t *zc) argument
1820 zfs_cmd_t zc = { 0 }; local
1991 zfs_cmd_t zc = { 0 }; local
2165 zfs_cmd_t zc = { 0 }; local
3130 zfs_cmd_t zc = { 0 }; local
3195 zfs_cmd_t zc = { 0 }; local
3329 zfs_cmd_t zc = { 0 }; local
4323 zfs_cmd_t zc = { 0 }; local
4640 zfs_cmd_t zc = { 0 }; local
4690 zfs_cmd_t zc = { 0 }; local
4771 zfs_cmd_t zc = { 0 }; local
5058 zfs_cmd_t zc = { 0 }; local
5125 zfs_cmd_t zc = { 0 }; local
[all...]
H A Dlibzfs_diff.c88 zfs_cmd_t zc = { 0 }; local
91 (void) strlcpy(zc.zc_name, dsname, sizeof (zc.zc_name));
92 zc.zc_obj = obj;
95 error = ioctl(di->zhp->zfs_hdl->libzfs_fd, ZFS_IOC_OBJ_TO_STATS, &zc);
99 (void) memcpy(sb, &zc.zc_stat, sizeof (zfs_stat_t));
102 (void) strlcpy(pn, zc.zc_value, maxlen);
382 zfs_cmd_t zc = { 0 }; local
386 (void) strlcpy(zc.zc_name, di->fromsnap, sizeof (zc
510 zfs_cmd_t zc = { 0 }; local
755 zfs_cmd_t zc = { 0 }; local
[all...]
H A Dlibzfs_fru.c362 zfs_cmd_t zc = { 0 }; local
364 (void) strncpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name));
365 (void) strncpy(zc.zc_value, fru, sizeof (zc.zc_value));
366 zc.zc_guid = vdev_guid;
368 if (zfs_ioctl(zhp->zpool_hdl, ZFS_IOC_VDEV_SETFRU, &zc) != 0)
H A Dlibzfs_util.c812 zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len) argument
816 zc->zc_nvlist_dst_size = len;
817 zc->zc_nvlist_dst =
818 (uint64_t)(uintptr_t)zfs_alloc(hdl, zc->zc_nvlist_dst_size);
819 if (zc->zc_nvlist_dst == 0)
831 zcmd_expand_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
833 free((void *)(uintptr_t)zc->zc_nvlist_dst);
834 zc->zc_nvlist_dst =
835 (uint64_t)(uintptr_t)zfs_alloc(hdl, zc->zc_nvlist_dst_size);
836 if (zc
846 zcmd_free_nvlists(zfs_cmd_t *zc) argument
877 zcmd_write_conf_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
884 zcmd_write_src_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
894 zcmd_read_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t **nvlp) argument
904 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) argument
[all...]
H A Dlibzfs_sendrecv.c195 zio_cksum_t *zc, int outfd)
200 offsetof(dmu_replay_record_t, drr_u.drr_checksum.drr_checksum), zc);
204 drr->drr_u.drr_checksum.drr_checksum = *zc;
207 &drr->drr_u.drr_checksum.drr_checksum, sizeof (zio_cksum_t), zc);
211 (void) fletcher_4_incremental_native(payload, payload_len, zc);
1024 zfs_cmd_t zc = { 0 }; local
1030 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name));
1031 zc.zc_obj = fromorigin;
1032 zc
194 dump_record(dmu_replay_record_t *drr, void *payload, int payload_len, zio_cksum_t *zc, int outfd) argument
1095 zfs_cmd_t zc = { 0 }; local
1192 zfs_cmd_t zc = { 0 }; local
1414 zfs_cmd_t zc = { 0 }; local
1902 zio_cksum_t zc; local
2194 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, boolean_t byteswap, zio_cksum_t *zc) argument
2226 recv_read_nvlist(libzfs_handle_t *hdl, int fd, int len, nvlist_t **nvp, boolean_t byteswap, zio_cksum_t *zc) argument
2386 zfs_cmd_t zc = {"\\0"}; local
2915 zfs_cmd_t zc = { 0 }; local
3051 zfs_receive_package(libzfs_handle_t *hdl, int fd, const char *destname, recvflags_t *flags, dmu_replay_record_t *drr, zio_cksum_t *zc, char **top_zfs, int cleanup_fd, uint64_t *action_handlep, nvlist_t *cmdprops) argument
3875 zfs_cmd_t zc = { 0 }; local
4175 zfs_cmd_t zc = { 0 }; local
[all...]
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetzcent.c160 tsol_zcent_t *zc; local
178 if ((zc = calloc(1, sizeof (*zc))) == NULL) {
184 instr = parse_entry(zc->zc_name, sizeof (zc->zc_name), instr, "#;:\n");
185 if (zc->zc_name[0] == '\0') {
218 slp = &zc->zc_label;
228 zc->zc_doi = 0;
232 zc->zc_match = (uchar_t)strtol(instr, &cp, 0);
252 if (!parse_mlp_list(&zc
280 tsol_freezcent(tsol_zcent_t *zc) argument
[all...]
/illumos-gate/usr/src/lib/libzfs_core/common/
H A Dlibzfs_core.c173 zfs_cmd_t zc = { 0 }; local
187 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name));
191 zc.zc_nvlist_src = (uint64_t)(uintptr_t)packed;
192 zc.zc_nvlist_src_size = size;
198 zc.zc_nvlist_dst_size = fnvlist_lookup_uint64(source,
201 zc.zc_nvlist_dst_size = MAX(size * 2, 128 * 1024);
203 zc.zc_nvlist_dst = (uint64_t)(uintptr_t)
204 malloc(zc.zc_nvlist_dst_size);
205 if (zc
294 zfs_cmd_t zc = { 0 }; local
322 zfs_cmd_t zc = { 0 }; local
476 zfs_cmd_t zc = { 0 }; local
733 zfs_cmd_t zc = { 0 }; local
[all...]
/illumos-gate/usr/src/uts/common/fs/dev/
H A Dsdev_zvolops.c136 devzvol_handle_ioctl(int cmd, zfs_cmd_t *zc, size_t *alloc_size) argument
154 cookie = zc->zc_cookie;
156 zc->zc_nvlist_dst = (uint64_t)(intptr_t)kmem_alloc(size,
158 zc->zc_nvlist_dst_size = size;
159 rc = ldi_ioctl(devzvol_lh, cmd, (intptr_t)zc, FKIOCTL, kcred,
163 newsize = zc->zc_nvlist_dst_size;
165 kmem_free((void *)(uintptr_t)zc->zc_nvlist_dst, size);
167 zc->zc_cookie = cookie;
171 kmem_free((void *)(uintptr_t)zc->zc_nvlist_dst, size);
184 zfs_cmd_t *zc; local
379 zfs_cmd_t *zc; local
850 zfs_cmd_t *zc; local
[all...]
/illumos-gate/usr/src/cmd/zinject/
H A Dzinject.c341 zfs_cmd_t zc = { 0 }; local
344 while (ioctl(zfs_fd, ZFS_IOC_INJECT_LIST_NEXT, &zc) == 0)
345 if ((ret = func((int)zc.zc_guid, zc.zc_name,
346 &zc.zc_inject_record, data)) != 0)
507 zfs_cmd_t zc = { 0 }; local
509 zc.zc_guid = (uint64_t)id;
511 if (ioctl(zfs_fd, ZFS_IOC_CLEAR_FAULT, &zc) != 0) {
540 zfs_cmd_t zc = { 0 }; local
542 zc
562 zfs_cmd_t zc = { 0 }; local
621 zfs_cmd_t zc = { 0 }; local
[all...]
/illumos-gate/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c402 tsol_zcent_t *zc; local
418 zc = NULL;
424 if ((zc = tsol_sgetzcent(line, &err, &errstr)) == NULL) {
439 if (strcasecmp(zc->zc_name, "global") == 0)
441 tsol_freezcent(zc);
445 if (zc == NULL) {
456 handle_mlps(GLOBAL_ZONEID, zc->zc_private_mlp, 0, TNDB_LOAD);
457 handle_mlps(GLOBAL_ZONEID, zc->zc_shared_mlp, TSOL_MEF_SHARED,
460 tsol_freezcent(zc);
575 tsol_zcent_t *zc; local
[all...]
/illumos-gate/usr/src/test/zfs-tests/cmd/libzfs_input_check/
H A Dlibzfs_input_check.c137 zfs_cmd_t zc = {"\0"}; local
159 (void) strncpy(zc.zc_name, name, sizeof (zc.zc_name));
160 zc.zc_name[sizeof (zc.zc_name) - 1] = '\0';
161 zc.zc_nvlist_src = (uint64_t)(uintptr_t)packed;
162 zc.zc_nvlist_src_size = size;
163 zc.zc_nvlist_dst_size = MAX(size * 2, 128 * 1024);
164 zc.zc_nvlist_dst = (uint64_t)(uintptr_t)malloc(zc
697 zfs_cmd_t zc = {"\\0"}; local
795 zfs_cmd_t zc = {"\\0"}; local
[all...]
/illumos-gate/usr/src/cmd/tsol/tnchkdb/
H A Dtnchkdb.c573 tsol_zcent_t *zc; local
600 if ((zc = tsol_sgetzcent(line, &err, &errstr)) == NULL) {
608 cipso_representable(&zc->zc_label, linenum, zc->zc_name,
611 if (strcmp(zc->zc_name, "global") == 0)
614 if ((tnl = find_zone(zc->zc_name)) != NULL) {
617 "%2$d and %3$d\n"), zc->zc_name, tnl->linenum,
621 add_zone(zc->zc_name, linenum);
624 if (zc->zc_private_mlp != NULL)
625 check_mlp_conflicts(zc
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzap.h376 void zap_cursor_init(zap_cursor_t *zc, objset_t *ds, uint64_t zapobj);
377 void zap_cursor_init_noprefetch(zap_cursor_t *zc, objset_t *os,
379 void zap_cursor_fini(zap_cursor_t *zc);
385 int zap_cursor_retrieve(zap_cursor_t *zc, zap_attribute_t *za);
390 void zap_cursor_advance(zap_cursor_t *zc);
399 uint64_t zap_cursor_serialize(zap_cursor_t *zc);
408 void zap_cursor_init_serialized(zap_cursor_t *zc, objset_t *ds,

Completed in 106 milliseconds

123