Lines Matching defs:zc
88 zfs_cmd_t zc = { 0 };
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 };
378 (void) strlcpy(zc.zc_name, di->fromsnap, sizeof (zc.zc_name));
379 zc.zc_obj = dr->ddr_first - 1;
383 while (zc.zc_obj < dr->ddr_last) {
386 err = ioctl(lhdl->libzfs_fd, ZFS_IOC_NEXT_OBJ, &zc);
388 if (zc.zc_obj == di->shares) {
389 zc.zc_obj++;
392 if (zc.zc_obj > dr->ddr_last) {
395 err = describe_free(fp, di, zc.zc_obj, fobjname,
405 zc.zc_obj);
502 zfs_cmd_t zc = { 0 };
504 (void) snprintf(zc.zc_value, sizeof (zc.zc_value),
506 (void) strlcpy(zc.zc_name, di->ds, sizeof (zc.zc_name));
507 zc.zc_cleanup_fd = di->cleanupfd;
509 if (ioctl(hdl->libzfs_fd, ZFS_IOC_TMP_SNAPSHOT, &zc) != 0) {
520 "snapshot of '%s'"), zc.zc_name);
525 di->tmpsnap = zfs_strdup(hdl, zc.zc_value);
747 zfs_cmd_t zc = { 0 };
785 (void) strlcpy(zc.zc_value, di.fromsnap, strlen(di.fromsnap) + 1);
786 (void) strlcpy(zc.zc_name, di.tosnap, strlen(di.tosnap) + 1);
787 zc.zc_cookie = pipefd[1];
789 iocerr = ioctl(zhp->zfs_hdl->libzfs_fd, ZFS_IOC_DIFF, &zc);