Lines Matching defs:zc
334 zfs_cmd_t zc = { 0 };
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 };
500 zc.zc_guid = (uint64_t)id;
502 if (ioctl(zfs_fd, ZFS_IOC_CLEAR_FAULT, &zc) != 0) {
531 zfs_cmd_t zc = { 0 };
533 zc.zc_guid = (uint64_t)id;
535 if (ioctl(zfs_fd, ZFS_IOC_CLEAR_FAULT, &zc) != 0) {
553 zfs_cmd_t zc = { 0 };
555 (void) strcpy(zc.zc_name, pool);
556 zc.zc_inject_record = *record;
557 zc.zc_guid = flags;
559 if (ioctl(zfs_fd, ZFS_IOC_INJECT_FAULT, &zc) != 0) {
569 (void) printf("%llu\n", (u_longlong_t)zc.zc_guid);
572 "properties:\n", (u_longlong_t)zc.zc_guid);
610 zfs_cmd_t zc = { 0 };
613 (void) strlcpy(zc.zc_name, pool, sizeof (zc.zc_name));
614 zc.zc_guid = record->zi_guid;
615 zc.zc_cookie = cmd;
617 if (ioctl(zfs_fd, ZFS_IOC_VDEV_SET_STATE, &zc) == 0)