Searched defs:zc (Results 1 - 25 of 54) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzrlock.c73 zrl_add_impl(zrlock_t *zrl, const char *zc) argument
88 zrl->zr_caller = zc;
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 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 Dzcp_iter.c55 zap_cursor_t zc; local
71 zap_cursor_init_serialized(&zc, dp->dp_meta_objset,
75 err = zap_cursor_retrieve(&zc, &za);
77 zap_cursor_fini(&zc);
85 zap_cursor_advance(&zc);
86 cursor = zap_cursor_serialize(&zc);
87 zap_cursor_fini(&zc);
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 Ddsl_bookmark.c284 zap_cursor_t zc; local
292 for (zap_cursor_init(&zc, dp->dp_meta_objset, bmark_zapobj);
293 zap_cursor_retrieve(&zc, &attr) == 0;
294 zap_cursor_advance(&zc)) {
328 zap_cursor_fini(&zc);
H A Dzfeature.c179 zap_cursor_t zc; local
185 for (zap_cursor_init(&zc, os, obj);
186 zap_cursor_retrieve(&zc, &za) == 0;
187 zap_cursor_advance(&zc)) {
213 zap_cursor_fini(&zc);
H A Ddsl_userhold.c673 zap_cursor_t zc; local
676 for (zap_cursor_init(&zc, ds->ds_dir->dd_pool->dp_meta_objset,
678 zap_cursor_retrieve(&zc, za) == 0;
679 zap_cursor_advance(&zc)) {
683 zap_cursor_fini(&zc);
H A Dzfs_dir.c486 zap_cursor_t zc; local
495 for (zap_cursor_init(&zc, zfsvfs->z_os, zfsvfs->z_unlinkedobj);
496 zap_cursor_retrieve(&zc, &zap) == 0;
497 zap_cursor_advance(&zc)) {
528 zap_cursor_fini(&zc);
545 zap_cursor_t zc; local
554 for (zap_cursor_init(&zc, zfsvfs->z_os, dzp->z_id);
555 (error = zap_cursor_retrieve(&zc, &zap)) == 0;
556 zap_cursor_advance(&zc)) {
593 zap_cursor_fini(&zc);
[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_destroy.c187 zap_cursor_t zc; local
198 for (zap_cursor_init(&zc, mos, dsl_dir_phys(ds->ds_dir)->dd_clones);
199 zap_cursor_retrieve(&zc, &za) == 0;
200 zap_cursor_advance(&zc)) {
216 zap_cursor_fini(&zc);
H A Ddsl_prop.c542 zap_cursor_t zc; local
597 for (zap_cursor_init(&zc, mos,
599 zap_cursor_retrieve(&zc, za) == 0;
600 zap_cursor_advance(&zc)) {
605 zap_cursor_fini(&zc);
936 zap_cursor_t zc; local
940 for (zap_cursor_init(&zc, mos, propobj);
941 (err = zap_cursor_retrieve(&zc, &za)) == 0;
942 zap_cursor_advance(&zc)) {
1048 zap_cursor_fini(&zc);
[all...]
H A Ddsl_pool.c1088 zap_cursor_t zc; local
1099 for (zap_cursor_init(&zc, mos, zapobj);
1100 zap_cursor_retrieve(&zc, &za) == 0;
1101 zap_cursor_advance(&zc)) {
1119 zap_cursor_fini(&zc);
/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/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_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_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_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...]
/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/zhack/
H A Dzhack.c188 zap_cursor_t zc; local
193 for (zap_cursor_init(&zc, os, obj);
194 zap_cursor_retrieve(&zc, &za) == 0;
195 zap_cursor_advance(&zc)) {
208 zap_cursor_fini(&zc);
/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/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/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/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...]
/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...]

Completed in 158 milliseconds

123