Searched refs:zc (Results 1 - 25 of 57) 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);
200 add_ds_props(zfs_cmd_t *zc, PyObject *nvl) argument
202 dmu_objset_stats_t *s = &zc->zc_objset_stats;
213 ioctl_with_dstnv(int ioc, zfs_cmd_t *zc) argument
221 zc->zc_nvlist_dst_size = nvsz;
222 zc->zc_nvlist_dst = (uintptr_t)nvbuf;
224 if (ioctl(zfsdevfd, ioc, zc) == 0) {
227 errno = nvlist_unpack(nvbuf, zc
246 zfs_cmd_t zc = { 0 }; local
282 zfs_cmd_t zc = { 0 }; local
304 zfs_cmd_t zc = { 0 }; local
325 zfs_cmd_t zc = { 0 }; local
363 zfs_cmd_t zc = { 0 }; local
382 zfs_cmd_t zc = { 0 }; local
447 zfs_cmd_t zc = { 0 }; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_ioctl.c262 static int zfs_ioc_userspace_upgrade(zfs_cmd_t *zc);
263 static int zfs_ioc_id_quota_upgrade(zfs_cmd_t *zc);
318 history_str_get(zfs_cmd_t *zc) argument
322 if (zc->zc_history == 0)
326 if (copyinstr((void *)(uintptr_t)zc->zc_history,
397 zfs_log_history(zfs_cmd_t *zc) argument
402 if ((buf = history_str_get(zc)) == NULL)
405 if (spa_open(zc->zc_name, &spa, FTAG) == 0) {
419 zfs_secpolicy_none(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
430 zfs_secpolicy_read(zfs_cmd_t *zc, nvlist_ argument
695 zfs_secpolicy_set_fsacl(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
712 zfs_secpolicy_rollback(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
720 zfs_secpolicy_send(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
756 zfs_secpolicy_send_new(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
764 zfs_secpolicy_deleg_share(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
788 zfs_secpolicy_share(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
801 zfs_secpolicy_smb_acl(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
849 zfs_secpolicy_destroy(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
860 zfs_secpolicy_destroy_snaps(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
922 zfs_secpolicy_rename(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
929 zfs_secpolicy_promote(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
977 zfs_secpolicy_recv(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1005 zfs_secpolicy_snapshot(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1036 zfs_secpolicy_bookmark(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1061 zfs_secpolicy_remap(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1069 zfs_secpolicy_destroy_bookmarks(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1110 zfs_secpolicy_log_history(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1122 zfs_secpolicy_create_clone(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1151 zfs_secpolicy_config(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1164 zfs_secpolicy_diff(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1180 zfs_secpolicy_inject(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1187 zfs_secpolicy_inherit_prop(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1203 zfs_secpolicy_userspace_one(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1238 zfs_secpolicy_userspace_many(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1253 zfs_secpolicy_userspace_upgrade(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1261 zfs_secpolicy_hold(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1287 zfs_secpolicy_release(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1308 zfs_secpolicy_load_key(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1316 zfs_secpolicy_change_key(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1326 zfs_secpolicy_tmp_snapshot(zfs_cmd_t *zc, nvlist_t *innvl, cred_t *cr) argument
1424 put_nvlist(zfs_cmd_t *zc, nvlist_t *nvl) argument
1524 zfs_ioc_pool_create(zfs_cmd_t *zc) argument
1609 zfs_ioc_pool_destroy(zfs_cmd_t *zc) argument
1620 zfs_ioc_pool_import(zfs_cmd_t *zc) argument
1658 zfs_ioc_pool_export(zfs_cmd_t *zc) argument
1672 zfs_ioc_pool_configs(zfs_cmd_t *zc) argument
1697 zfs_ioc_pool_stats(zfs_cmd_t *zc) argument
1728 zfs_ioc_pool_tryimport(zfs_cmd_t *zc) argument
1757 zfs_ioc_pool_scan(zfs_cmd_t *zc) argument
1781 zfs_ioc_pool_freeze(zfs_cmd_t *zc) argument
1795 zfs_ioc_pool_upgrade(zfs_cmd_t *zc) argument
1816 zfs_ioc_pool_get_history(zfs_cmd_t *zc) argument
1848 zfs_ioc_pool_reguid(zfs_cmd_t *zc) argument
1862 zfs_ioc_dsobj_to_dsname(zfs_cmd_t *zc) argument
1876 zfs_ioc_obj_to_path(zfs_cmd_t *zc) argument
1906 zfs_ioc_obj_to_stats(zfs_cmd_t *zc) argument
1927 zfs_ioc_vdev_add(zfs_cmd_t *zc) argument
1977 zfs_ioc_vdev_remove(zfs_cmd_t *zc) argument
1995 zfs_ioc_vdev_set_state(zfs_cmd_t *zc) argument
2037 zfs_ioc_vdev_attach(zfs_cmd_t *zc) argument
2058 zfs_ioc_vdev_detach(zfs_cmd_t *zc) argument
2073 zfs_ioc_vdev_split(zfs_cmd_t *zc) argument
2108 zfs_ioc_vdev_setpath(zfs_cmd_t *zc) argument
2125 zfs_ioc_vdev_setfru(zfs_cmd_t *zc) argument
2142 zfs_ioc_objset_stats_impl(zfs_cmd_t *zc, objset_t *os) argument
2184 zfs_ioc_objset_stats(zfs_cmd_t *zc) argument
2212 zfs_ioc_objset_recvd_props(zfs_cmd_t *zc) argument
2260 zfs_ioc_objset_zplprops(zfs_cmd_t *zc) argument
2326 zfs_ioc_dataset_list_next(zfs_cmd_t *zc) argument
2383 zfs_ioc_snapshot_list_next(zfs_cmd_t *zc) argument
2567 zfs_cmd_t *zc; local
2829 zfs_ioc_set_prop(zfs_cmd_t *zc) argument
2876 zfs_ioc_inherit_prop(zfs_cmd_t *zc) argument
2943 zfs_ioc_pool_set_props(zfs_cmd_t *zc) argument
2988 zfs_ioc_pool_get_props(zfs_cmd_t *zc) argument
3027 zfs_ioc_set_fsacl(zfs_cmd_t *zc) argument
3076 zfs_ioc_get_fsacl(zfs_cmd_t *zc) argument
3792 zfs_ioc_destroy(zfs_cmd_t *zc) argument
4063 zfs_ioc_rename(zfs_cmd_t *zc) argument
4416 zfs_cmd_t *zc; local
4911 zfs_ioc_recv(zfs_cmd_t *zc) argument
4995 zfs_ioc_send(zfs_cmd_t *zc) argument
5085 zfs_ioc_send_progress(zfs_cmd_t *zc) argument
5129 zfs_ioc_inject_fault(zfs_cmd_t *zc) argument
5143 zfs_ioc_clear_fault(zfs_cmd_t *zc) argument
5149 zfs_ioc_inject_list_next(zfs_cmd_t *zc) argument
5163 zfs_ioc_error_log(zfs_cmd_t *zc) argument
5185 zfs_ioc_clear(zfs_cmd_t *zc) argument
5270 zfs_ioc_pool_reopen(zfs_cmd_t *zc) argument
5303 zfs_ioc_promote(zfs_cmd_t *zc) argument
5370 zfs_ioc_userspace_one(zfs_cmd_t *zc) argument
5401 zfs_ioc_userspace_many(zfs_cmd_t *zc) argument
5437 zfs_ioc_userspace_upgrade(zfs_cmd_t *zc) argument
5484 zfs_ioc_id_quota_upgrade(zfs_cmd_t *zc) argument
5559 zfs_ioc_share(zfs_cmd_t *zc) argument
5666 zfs_ioc_next_obj(zfs_cmd_t *zc) argument
5692 zfs_ioc_tmp_snapshot(zfs_cmd_t *zc) argument
5727 zfs_ioc_diff(zfs_cmd_t *zc) argument
5754 zap_cursor_t zc; local
5771 zfs_ioc_smb_acl(zfs_cmd_t *zc) argument
5993 zfs_ioc_space_written(zfs_cmd_t *zc) argument
6870 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);
H A Dzrlock.c73 zrl_add_impl(zrlock_t *zrl, const char *zc) argument
88 zrl->zr_caller = 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.c72 zfs_cmd_t zc = { 0 }; local
75 (void) strlcpy(zc.zc_name, zhp->zpool_name, sizeof (zc.zc_name));
77 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0)
80 while (ioctl(hdl->libzfs_fd, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) {
82 if (zcmd_expand_dst_nvlist(hdl, &zc) != 0) {
83 zcmd_free_nvlists(&zc);
87 zcmd_free_nvlists(&zc);
92 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) {
93 zcmd_free_nvlists(&zc);
712 zfs_cmd_t zc = { 0 }; local
1177 zfs_cmd_t zc = { 0 }; local
1340 zfs_cmd_t zc = { 0 }; local
1426 zfs_cmd_t zc = { 0 }; local
1533 zfs_cmd_t zc = { 0 }; local
1803 zfs_cmd_t zc = { 0 }; local
2088 zfs_cmd_t zc = { 0 }; local
2836 zfs_cmd_t zc = { 0 }; local
2907 zfs_cmd_t zc = { 0 }; local
2957 zfs_cmd_t zc = { 0 }; local
2992 zfs_cmd_t zc = { 0 }; local
3046 zfs_cmd_t zc = { 0 }; local
3212 zfs_cmd_t zc = { 0 }; local
3310 zfs_cmd_t zc = { 0 }; local
3517 zfs_cmd_t zc = { 0 }; local
3568 zfs_cmd_t zc = { 0 }; local
3620 zfs_cmd_t zc = { 0 }; local
3696 zfs_cmd_t zc = { 0 }; local
3722 zfs_cmd_t zc = { 0 }; local
3740 zfs_cmd_t zc = { 0 }; local
3913 zfs_cmd_t zc = { 0 }; local
4107 zfs_cmd_t zc = { 0 }; local
4206 zfs_cmd_t zc = { 0 }; local
4232 zfs_cmd_t zc = { 0 }; local
4258 zfs_cmd_t zc = { 0 }; local
4400 zfs_cmd_t zc = { 0 }; local
[all...]
H A Dlibzfs_iter.c62 zfs_do_list_ioctl(zfs_handle_t *zhp, int arg, zfs_cmd_t *zc) argument
67 orig_cookie = zc->zc_cookie;
69 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name));
70 rc = ioctl(zhp->zfs_hdl->libzfs_fd, arg, zc);
76 if (zcmd_expand_dst_nvlist(zhp->zfs_hdl, zc) != 0) {
77 zcmd_free_nvlists(zc);
80 zc->zc_cookie = orig_cookie;
107 zfs_cmd_t zc = { 0 }; local
114 if (zcmd_alloc_dst_nvlist(zhp->zfs_hdl, &zc,
144 zfs_cmd_t zc = { 0 }; local
[all...]
H A Dlibzfs_dataset.c316 get_stats_ioctl(zfs_handle_t *zhp, zfs_cmd_t *zc) argument
320 (void) strlcpy(zc->zc_name, zhp->zfs_name, sizeof (zc->zc_name));
322 while (ioctl(hdl->libzfs_fd, ZFS_IOC_OBJSET_STATS, zc) != 0) {
324 if (zcmd_expand_dst_nvlist(hdl, zc) != 0) {
342 zfs_cmd_t zc = { 0 }; local
345 if (zcmd_alloc_dst_nvlist(hdl, &zc, 0) != 0)
348 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name));
350 while (ioctl(hdl->libzfs_fd, ZFS_IOC_OBJSET_RECVD_PROPS, &zc) !
373 put_stats_zhdl(zfs_handle_t *zhp, zfs_cmd_t *zc) argument
405 zfs_cmd_t zc = { 0 }; local
431 make_dataset_handle_common(zfs_handle_t *zhp, zfs_cmd_t *zc) argument
467 zfs_cmd_t zc = { 0 }; local
494 make_dataset_handle_zc(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
511 make_dataset_simple_handle_zc(zfs_handle_t *pzhp, zfs_cmd_t *zc) argument
1823 zfs_cmd_t zc = { 0 }; local
1994 zfs_cmd_t zc = { 0 }; local
2168 zfs_cmd_t zc = { 0 }; local
3133 zfs_cmd_t zc = { 0 }; local
3198 zfs_cmd_t zc = { 0 }; local
3332 zfs_cmd_t zc = { 0 }; local
4326 zfs_cmd_t zc = { 0 }; local
4643 zfs_cmd_t zc = { 0 }; local
4693 zfs_cmd_t zc = { 0 }; local
4774 zfs_cmd_t zc = { 0 }; local
5061 zfs_cmd_t zc = { 0 }; local
5128 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.c777 zcmd_alloc_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, size_t len) argument
781 zc->zc_nvlist_dst_size = len;
782 zc->zc_nvlist_dst =
783 (uint64_t)(uintptr_t)zfs_alloc(hdl, zc->zc_nvlist_dst_size);
784 if (zc->zc_nvlist_dst == 0)
796 zcmd_expand_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc) argument
798 free((void *)(uintptr_t)zc->zc_nvlist_dst);
799 zc->zc_nvlist_dst =
800 (uint64_t)(uintptr_t)zfs_alloc(hdl, zc->zc_nvlist_dst_size);
801 if (zc
811 zcmd_free_nvlists(zfs_cmd_t *zc) argument
842 zcmd_write_conf_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
849 zcmd_write_src_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t *nvl) argument
859 zcmd_read_dst_nvlist(libzfs_handle_t *hdl, zfs_cmd_t *zc, nvlist_t **nvlp) argument
869 zfs_ioctl(libzfs_handle_t *hdl, int request, zfs_cmd_t *zc) argument
[all...]
H A Dlibzfs_sendrecv.c194 zio_cksum_t *zc, int outfd)
199 offsetof(dmu_replay_record_t, drr_u.drr_checksum.drr_checksum), zc);
203 drr->drr_u.drr_checksum.drr_checksum = *zc;
206 &drr->drr_u.drr_checksum.drr_checksum, sizeof (zio_cksum_t), zc);
210 (void) fletcher_4_incremental_native(payload, payload_len, zc);
1019 zfs_cmd_t zc = { 0 }; local
1025 (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name));
1026 zc.zc_obj = fromorigin;
1027 zc
193 dump_record(dmu_replay_record_t *drr, void *payload, int payload_len, zio_cksum_t *zc, int outfd) argument
1090 zfs_cmd_t zc = { 0 }; local
1187 zfs_cmd_t zc = { 0 }; local
1409 zfs_cmd_t zc = { 0 }; local
1897 zio_cksum_t zc; local
2189 recv_read(libzfs_handle_t *hdl, int fd, void *buf, int ilen, boolean_t byteswap, zio_cksum_t *zc) argument
2221 recv_read_nvlist(libzfs_handle_t *hdl, int fd, int len, nvlist_t **nvp, boolean_t byteswap, zio_cksum_t *zc) argument
2381 zfs_cmd_t zc = {"\\0"}; local
2910 zfs_cmd_t zc = { 0 }; local
3046 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
3858 zfs_cmd_t zc = { 0 }; local
4158 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.c130 zfs_cmd_t zc = { 0 }; local
139 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name));
143 zc.zc_nvlist_src = (uint64_t)(uintptr_t)packed;
144 zc.zc_nvlist_src_size = size;
150 zc.zc_nvlist_dst_size = fnvlist_lookup_uint64(source,
153 zc.zc_nvlist_dst_size = MAX(size * 2, 128 * 1024);
155 zc.zc_nvlist_dst = (uint64_t)(uintptr_t)
156 malloc(zc.zc_nvlist_dst_size);
157 if (zc
246 zfs_cmd_t zc = { 0 }; local
274 zfs_cmd_t zc = { 0 }; local
428 zfs_cmd_t zc = { 0 }; local
685 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.c338 zfs_cmd_t zc = { 0 }; local
341 while (ioctl(zfs_fd, ZFS_IOC_INJECT_LIST_NEXT, &zc) == 0)
342 if ((ret = func((int)zc.zc_guid, zc.zc_name,
343 &zc.zc_inject_record, data)) != 0)
504 zfs_cmd_t zc = { 0 }; local
506 zc.zc_guid = (uint64_t)id;
508 if (ioctl(zfs_fd, ZFS_IOC_CLEAR_FAULT, &zc) != 0) {
537 zfs_cmd_t zc = { 0 }; local
539 zc
559 zfs_cmd_t zc = { 0 }; local
617 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/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,
/illumos-gate/usr/src/cmd/zstreamdump/
H A Dzstreamdump.c250 zio_cksum_t zc = { 0 }; local
290 while (read_hdr(drr, &zc)) {
300 ZIO_SET_CHECKSUM(&zc, 0, 0, 0, 0);
307 sizeof (dmu_replay_record_t), &zc);
381 (void) ssread(buf, sz, &zc);
425 ZIO_SET_CHECKSUM(&zc, 0, 0, 0, 0);
465 (void) ssread(buf, payload_size, &zc);
540 (void) ssread(buf, payload_size, &zc);
636 (void) ssread(buf, payload_size, &zc);
671 P2ROUNDUP(drrwe->drr_psize, 8), &zc);
[all...]

Completed in 221 milliseconds

123