Lines Matching refs:args

244 	nvlist_t *args = fnvlist_alloc();
245 fnvlist_add_int32(args, "type", (dmu_objset_type_t)type);
247 fnvlist_add_nvlist(args, "props", props);
248 error = lzc_ioctl(ZFS_IOC_CREATE, fsname, args, NULL);
249 nvlist_free(args);
258 nvlist_t *args = fnvlist_alloc();
259 fnvlist_add_string(args, "origin", origin);
261 fnvlist_add_nvlist(args, "props", props);
262 error = lzc_ioctl(ZFS_IOC_CLONE, fsname, args, NULL);
263 nvlist_free(args);
293 nvlist_t *args = fnvlist_alloc();
294 error = lzc_ioctl(ZFS_IOC_REMAP, fsname, args, NULL);
295 nvlist_free(args);
321 nvlist_t *args = fnvlist_alloc();
322 error = lzc_ioctl(ZFS_IOC_DESTROY, fsname, args, NULL);
323 nvlist_free(args);
346 nvlist_t *args;
359 args = fnvlist_alloc();
360 fnvlist_add_nvlist(args, "snaps", snaps);
362 fnvlist_add_nvlist(args, "props", props);
364 error = lzc_ioctl(ZFS_IOC_SNAPSHOT, pool, args, errlist);
365 nvlist_free(args);
398 nvlist_t *args;
409 args = fnvlist_alloc();
410 fnvlist_add_nvlist(args, "snaps", snaps);
412 fnvlist_add_boolean(args, "defer");
414 error = lzc_ioctl(ZFS_IOC_DESTROY_SNAPS, pool, args, errlist);
415 nvlist_free(args);
424 nvlist_t *args;
437 args = fnvlist_alloc();
438 fnvlist_add_string(args, "firstsnap", firstsnap);
440 err = lzc_ioctl(ZFS_IOC_SPACE_SNAPS, lastsnap, args, &result);
441 nvlist_free(args);
496 nvlist_t *args;
507 args = fnvlist_alloc();
508 fnvlist_add_nvlist(args, "holds", holds);
510 fnvlist_add_int32(args, "cleanup_fd", cleanup_fd);
512 error = lzc_ioctl(ZFS_IOC_HOLD, pool, args, errlist);
513 nvlist_free(args);
609 nvlist_t *args;
612 args = fnvlist_alloc();
613 fnvlist_add_int32(args, "fd", fd);
615 fnvlist_add_string(args, "fromsnap", from);
617 fnvlist_add_boolean(args, "largeblockok");
619 fnvlist_add_boolean(args, "embedok");
621 fnvlist_add_boolean(args, "compressok");
623 fnvlist_add_uint64(args, "resume_object", resumeobj);
624 fnvlist_add_uint64(args, "resume_offset", resumeoff);
626 err = lzc_ioctl(ZFS_IOC_SEND_NEW, snapname, args, NULL);
627 nvlist_free(args);
650 nvlist_t *args;
654 args = fnvlist_alloc();
656 fnvlist_add_string(args, "from", from);
658 fnvlist_add_boolean(args, "largeblockok");
660 fnvlist_add_boolean(args, "embedok");
662 fnvlist_add_boolean(args, "compressok");
663 err = lzc_ioctl(ZFS_IOC_SEND_SPACE, snapname, args, &result);
664 nvlist_free(args);
838 nvlist_t *args;
842 args = fnvlist_alloc();
843 err = lzc_ioctl(ZFS_IOC_ROLLBACK, fsname, args, &result);
844 nvlist_free(args);
863 nvlist_t *args;
867 args = fnvlist_alloc();
868 fnvlist_add_string(args, "target", snapname);
869 err = lzc_ioctl(ZFS_IOC_ROLLBACK, fsname, args, &result);
870 nvlist_free(args);
974 nvlist_t *args;
976 args = fnvlist_alloc();
977 fnvlist_add_string(args, ZCP_ARG_PROGRAM, program);
978 fnvlist_add_nvlist(args, ZCP_ARG_ARGLIST, argnvl);
979 fnvlist_add_boolean_value(args, ZCP_ARG_SYNC, sync);
980 fnvlist_add_uint64(args, ZCP_ARG_INSTRLIMIT, instrlimit);
981 fnvlist_add_uint64(args, ZCP_ARG_MEMLIMIT, memlimit);
982 error = lzc_ioctl(ZFS_IOC_CHANNEL_PROGRAM, pool, args, outnvl);
983 fnvlist_free(args);
1058 nvlist_t *args = fnvlist_alloc();
1060 error = lzc_ioctl(ZFS_IOC_POOL_CHECKPOINT, pool, args, &result);
1062 fnvlist_free(args);
1087 nvlist_t *args = fnvlist_alloc();
1089 error = lzc_ioctl(ZFS_IOC_POOL_DISCARD_CHECKPOINT, pool, args, &result);
1091 fnvlist_free(args);
1143 nvlist_t *args = fnvlist_alloc();
1144 fnvlist_add_uint64(args, ZPOOL_INITIALIZE_COMMAND, (uint64_t)cmd_type);
1145 fnvlist_add_nvlist(args, ZPOOL_INITIALIZE_VDEVS, vdevs);
1147 error = lzc_ioctl(ZFS_IOC_POOL_INITIALIZE, poolname, args, errlist);
1149 fnvlist_free(args);