/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zrlock.c | 73 zrl_add_impl(zrlock_t *zrl, const char *zc) argument 88 zrl->zr_caller = zc;
|
H A D | ddt_zap.c | 113 zap_cursor_t zc; local 117 zap_cursor_init_serialized(&zc, os, object, *walk); 118 if ((error = zap_cursor_retrieve(&zc, &za)) == 0) { 130 zap_cursor_advance(&zc); 131 *walk = zap_cursor_serialize(&zc); 133 zap_cursor_fini(&zc);
|
H A D | spa_errlog.c | 166 zap_cursor_t zc; local 173 for (zap_cursor_init(&zc, spa->spa_meta_objset, obj); 174 zap_cursor_retrieve(&zc, &za) == 0; 175 zap_cursor_advance(&zc)) { 178 zap_cursor_fini(&zc); 187 zap_cursor_fini(&zc); 194 zap_cursor_fini(&zc);
|
H A D | zfeature.c | 179 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 D | dsl_deadlist.c | 72 zap_cursor_t zc; local 82 for (zap_cursor_init(&zc, dl->dl_os, dl->dl_object); 83 zap_cursor_retrieve(&zc, &za) == 0; 84 zap_cursor_advance(&zc)) { 91 zap_cursor_fini(&zc); 159 zap_cursor_t zc; local 168 for (zap_cursor_init(&zc, os, dlobj); 169 zap_cursor_retrieve(&zc, &za) == 0; 170 zap_cursor_advance(&zc)) { 177 zap_cursor_fini(&zc); 462 zap_cursor_t zc; local [all...] |
H A D | dsl_bookmark.c | 258 zap_cursor_t zc; local 266 for (zap_cursor_init(&zc, dp->dp_meta_objset, bmark_zapobj); 267 zap_cursor_retrieve(&zc, &attr) == 0; 268 zap_cursor_advance(&zc)) { 297 zap_cursor_fini(&zc);
|
H A D | dsl_userhold.c | 650 zap_cursor_t zc; local 653 for (zap_cursor_init(&zc, ds->ds_dir->dd_pool->dp_meta_objset, 655 zap_cursor_retrieve(&zc, za) == 0; 656 zap_cursor_advance(&zc)) { 660 zap_cursor_fini(&zc);
|
H A D | zfs_dir.c | 469 zap_cursor_t zc; local 478 for (zap_cursor_init(&zc, zfsvfs->z_os, zfsvfs->z_unlinkedobj); 479 zap_cursor_retrieve(&zc, &zap) == 0; 480 zap_cursor_advance(&zc)) { 511 zap_cursor_fini(&zc); 528 zap_cursor_t zc; local 537 for (zap_cursor_init(&zc, zfsvfs->z_os, dzp->z_id); 538 (error = zap_cursor_retrieve(&zc, &zap)) == 0; 539 zap_cursor_advance(&zc)) { 576 zap_cursor_fini(&zc); [all...] |
H A D | dsl_deleg.c | 345 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); 476 zap_cursor_t zc; local 490 for (zap_cursor_init(&zc, mos, jumpobj); 491 zap_cursor_retrieve(&zc, &za) == 0; 492 zap_cursor_advance(&zc)) { 504 zap_cursor_fini(&zc); 677 zap_cursor_t zc; local 740 zap_cursor_t zc; local [all...] |
H A D | dsl_prop.c | 542 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); 932 zap_cursor_t zc; local 936 for (zap_cursor_init(&zc, mos, propobj); 937 (err = zap_cursor_retrieve(&zc, &za)) == 0; 938 zap_cursor_advance(&zc)) { 1044 zap_cursor_fini(&zc); [all...] |
H A D | dsl_destroy.c | 210 zap_cursor_t zc; local 221 for (zap_cursor_init(&zc, mos, dsl_dir_phys(ds->ds_dir)->dd_clones); 222 zap_cursor_retrieve(&zc, &za) == 0; 223 zap_cursor_advance(&zc)) { 235 zap_cursor_fini(&zc);
|
H A D | dsl_pool.c | 852 zap_cursor_t zc; local 863 for (zap_cursor_init(&zc, mos, zapobj); 864 zap_cursor_retrieve(&zc, &za) == 0; 865 zap_cursor_advance(&zc)) { 883 zap_cursor_fini(&zc);
|
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetzcent.c | 160 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 D | libzfs_fru.c | 362 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 D | libzfs_config.c | 111 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 D | libzfs_iter.c | 62 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 D | libzfs_diff.c | 88 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); 374 zfs_cmd_t zc = { 0 }; local 378 (void) strlcpy(zc.zc_name, di->fromsnap, sizeof (zc 502 zfs_cmd_t zc = { 0 }; local 747 zfs_cmd_t zc = { 0 }; local [all...] |
/illumos-gate/usr/src/cmd/tsol/tnctl/ |
H A D | tnctl.c | 401 tsol_zcent_t *zc; local 417 zc = NULL; 423 if ((zc = tsol_sgetzcent(line, &err, &errstr)) == NULL) { 438 if (strcasecmp(zc->zc_name, "global") == 0) 440 tsol_freezcent(zc); 444 if (zc == NULL) { 455 handle_mlps(GLOBAL_ZONEID, zc->zc_private_mlp, 0, TNDB_LOAD); 456 handle_mlps(GLOBAL_ZONEID, zc->zc_shared_mlp, TSOL_MEF_SHARED, 459 tsol_freezcent(zc); 574 tsol_zcent_t *zc; local [all...] |
/illumos-gate/usr/src/cmd/zinject/ |
H A D | zinject.c | 334 zfs_cmd_t zc = { 0 }; local 337 while (ioctl(zfs_fd, ZFS_IOC_INJECT_LIST_NEXT, &zc) == 0) 338 if ((ret = func((int)zc.zc_guid, zc.zc_name, 339 &zc.zc_inject_record, data)) != 0) 498 zfs_cmd_t zc = { 0 }; local 500 zc.zc_guid = (uint64_t)id; 502 if (ioctl(zfs_fd, ZFS_IOC_CLEAR_FAULT, &zc) != 0) { 531 zfs_cmd_t zc = { 0 }; local 533 zc 553 zfs_cmd_t zc = { 0 }; local 610 zfs_cmd_t zc = { 0 }; local [all...] |
/illumos-gate/usr/src/cmd/zhack/ |
H A D | zhack.c | 221 zap_cursor_t zc; local 226 for (zap_cursor_init(&zc, os, obj); 227 zap_cursor_retrieve(&zc, &za) == 0; 228 zap_cursor_advance(&zc)) { 241 zap_cursor_fini(&zc);
|
/illumos-gate/usr/src/cmd/zstreamdump/ |
H A D | zstreamdump.c | 228 zio_cksum_t zc = { 0 }; local 268 while (read_hdr(drr, &zc)) { 278 ZIO_SET_CHECKSUM(&zc, 0, 0, 0, 0); 285 sizeof (dmu_replay_record_t), &zc); 359 (void) ssread(buf, sz, &zc); 403 ZIO_SET_CHECKSUM(&zc, 0, 0, 0, 0); 428 P2ROUNDUP(drro->drr_bonuslen, 8), &zc); 493 (void) ssread(buf, payload_size, &zc); 564 (void) ssread(buf, drrs->drr_length, &zc); 599 P2ROUNDUP(drrwe->drr_psize, 8), &zc); [all...] |
/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | ioctl.c | 62 ioctl_with_cmdstr(int ioc, zfs_cmd_t *zc) argument 67 zc->zc_history = (uint64_t)(uintptr_t)cmdstr; 68 err = ioctl(zfsdevfd, ioc, zc); 187 add_ds_props(zfs_cmd_t *zc, PyObject *nvl) argument 189 dmu_objset_stats_t *s = &zc->zc_objset_stats; 200 ioctl_with_dstnv(int ioc, zfs_cmd_t *zc) argument 208 zc->zc_nvlist_dst_size = nvsz; 209 zc->zc_nvlist_dst = (uintptr_t)nvbuf; 211 if (ioctl(zfsdevfd, ioc, zc) == 0) { 214 errno = nvlist_unpack(nvbuf, zc 233 zfs_cmd_t zc = { 0 }; local 269 zfs_cmd_t zc = { 0 }; local 291 zfs_cmd_t zc = { 0 }; local 312 zfs_cmd_t zc = { 0 }; local 350 zfs_cmd_t zc = { 0 }; local 369 zfs_cmd_t zc = { 0 }; local 434 zfs_cmd_t zc = { 0 }; local [all...] |
/illumos-gate/usr/src/cmd/tsol/tnchkdb/ |
H A D | tnchkdb.c | 573 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/libzfs_core/common/ |
H A D | libzfs_core.c | 123 zfs_cmd_t zc = { 0 }; local 130 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name)); 133 zc.zc_nvlist_src = (uint64_t)(uintptr_t)packed; 134 zc.zc_nvlist_src_size = size; 138 zc.zc_nvlist_dst_size = MAX(size * 2, 128 * 1024); 139 zc.zc_nvlist_dst = (uint64_t)(uintptr_t) 140 malloc(zc.zc_nvlist_dst_size); 141 if (zc.zc_nvlist_dst == NULL) { 147 while (ioctl(g_fd, ioc, &zc) ! 329 zfs_cmd_t zc = { 0 }; local 569 zfs_cmd_t zc = { 0 }; local [all...] |
/illumos-gate/usr/src/uts/common/fs/dev/ |
H A D | sdev_zvolops.c | 136 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...] |