Lines Matching full:required

179  *   ZFS_ERR_IOC_ARG_REQUIRED	a required input argument is missing
183 lzc_ioctl_test(zfs_ioc_t ioc, const char *name, nvlist_t *required, in lzc_ioctl_test() argument
190 if (required != NULL) { in lzc_ioctl_test()
191 for (nvpair_t *pair = nvlist_next_nvpair(required, NULL); in lzc_ioctl_test()
192 pair != NULL; pair = nvlist_next_nvpair(required, pair)) { in lzc_ioctl_test()
222 * Missing required inputs in lzc_ioctl_test()
224 if (required != NULL) { in lzc_ioctl_test()
233 if (required != NULL || optional != NULL) { in lzc_ioctl_test()
268 nvlist_t *required = fnvlist_alloc(); in test_pool_sync() local
270 fnvlist_add_boolean_value(required, "force", B_TRUE); in test_pool_sync()
272 IOC_INPUT_TEST(ZFS_IOC_POOL_SYNC, pool, required, NULL, 0); in test_pool_sync()
274 nvlist_free(required); in test_pool_sync()
307 nvlist_t *required = fnvlist_alloc(); in test_log_history() local
309 fnvlist_add_string(required, "message", "input check"); in test_log_history()
311 IOC_INPUT_TEST(ZFS_IOC_LOG_HISTORY, pool, required, NULL, 0); in test_log_history()
313 nvlist_free(required); in test_log_history()
323 nvlist_t *required = fnvlist_alloc(); in test_create() local
327 fnvlist_add_int32(required, "type", DMU_OST_ZFS); in test_create()
331 IOC_INPUT_TEST(ZFS_IOC_CREATE, dataset, required, optional, 0); in test_create()
333 nvlist_free(required); in test_create()
340 nvlist_t *required = fnvlist_alloc(); in test_snapshot() local
346 fnvlist_add_nvlist(required, "snaps", snaps); in test_snapshot()
351 IOC_INPUT_TEST(ZFS_IOC_SNAPSHOT, pool, required, optional, 0); in test_snapshot()
356 nvlist_free(required); in test_snapshot()
362 nvlist_t *required = fnvlist_alloc(); in test_space_snaps() local
363 fnvlist_add_string(required, "firstsnap", snapshot); in test_space_snaps()
365 IOC_INPUT_TEST(ZFS_IOC_SPACE_SNAPS, snapshot, required, NULL, 0); in test_space_snaps()
367 nvlist_free(required); in test_space_snaps()
373 nvlist_t *required = fnvlist_alloc(); in test_destroy_snaps() local
377 fnvlist_add_nvlist(required, "snaps", snaps); in test_destroy_snaps()
379 IOC_INPUT_TEST(ZFS_IOC_DESTROY_SNAPS, pool, required, NULL, 0); in test_destroy_snaps()
382 nvlist_free(required); in test_destroy_snaps()
389 nvlist_t *required = fnvlist_alloc(); in test_bookmark() local
391 fnvlist_add_string(required, bookmark, snapshot); in test_bookmark()
393 IOC_INPUT_TEST_WILD(ZFS_IOC_BOOKMARK, pool, required, NULL, 0); in test_bookmark()
395 nvlist_free(required); in test_bookmark()
415 nvlist_t *required = fnvlist_alloc(); in test_destroy_bookmarks() local
417 fnvlist_add_boolean(required, bookmark); in test_destroy_bookmarks()
419 IOC_INPUT_TEST_WILD(ZFS_IOC_DESTROY_BOOKMARKS, pool, required, NULL, 0); in test_destroy_bookmarks()
421 nvlist_free(required); in test_destroy_bookmarks()
427 nvlist_t *required = fnvlist_alloc(); in test_clone() local
431 fnvlist_add_string(required, "origin", snapshot); in test_clone()
433 IOC_INPUT_TEST(ZFS_IOC_CLONE, clone, required, NULL, 0); in test_clone()
437 nvlist_free(required); in test_clone()
455 nvlist_t *required = fnvlist_alloc(); in test_hold() local
460 fnvlist_add_nvlist(required, "holds", holds); in test_hold()
463 IOC_INPUT_TEST(ZFS_IOC_HOLD, pool, required, optional, 0); in test_hold()
467 nvlist_free(required); in test_hold()
479 nvlist_t *required = fnvlist_alloc(); in test_release() local
483 fnvlist_add_nvlist(required, snapshot, release); in test_release()
485 IOC_INPUT_TEST_WILD(ZFS_IOC_RELEASE, pool, required, NULL, 0); in test_release()
488 nvlist_free(required); in test_release()
495 nvlist_t *required = fnvlist_alloc(); in test_send_new() local
498 fnvlist_add_int32(required, "fd", fd); in test_send_new()
515 IOC_INPUT_TEST(ZFS_IOC_SEND_NEW, snapshot, required, optional, 0); in test_send_new()
518 nvlist_free(required); in test_send_new()
525 nvlist_t *required = fnvlist_alloc(); in test_recv_new() local
547 fnvlist_add_string(required, "snapname", snapshot); in test_recv_new()
548 fnvlist_add_byte_array(required, "begin_record", (uchar_t *)&drr, in test_recv_new()
550 fnvlist_add_int32(required, "input_fd", fd); in test_recv_new()
568 IOC_INPUT_TEST(ZFS_IOC_RECV_NEW, dataset, required, optional, in test_recv_new()
573 nvlist_free(required); in test_recv_new()
608 nvlist_t *required = fnvlist_alloc(); in test_channel_program() local
612 fnvlist_add_string(required, "program", program); in test_channel_program()
614 fnvlist_add_nvlist(required, "arg", args); in test_channel_program()
620 IOC_INPUT_TEST(ZFS_IOC_CHANNEL_PROGRAM, pool, required, optional, 0); in test_channel_program()
624 nvlist_free(required); in test_channel_program()
632 nvlist_t *required = fnvlist_alloc(); in test_load_key() local
638 fnvlist_add_nvlist(required, "hidden_args", hidden); in test_load_key()
641 IOC_INPUT_TEST(ZFS_IOC_LOAD_KEY, dataset, required, optional, EINVAL); in test_load_key()
644 nvlist_free(required); in test_load_key()
662 nvlist_t *required = fnvlist_alloc(); in test_vdev_initialize() local
666 fnvlist_add_uint64(required, ZPOOL_INITIALIZE_COMMAND, in test_vdev_initialize()
668 fnvlist_add_nvlist(required, ZPOOL_INITIALIZE_VDEVS, vdev_guids); in test_vdev_initialize()
670 IOC_INPUT_TEST(ZFS_IOC_POOL_INITIALIZE, pool, required, NULL, EINVAL); in test_vdev_initialize()
672 nvlist_free(required); in test_vdev_initialize()
678 nvlist_t *required = fnvlist_alloc(); in test_vdev_trim() local
683 fnvlist_add_uint64(required, ZPOOL_TRIM_COMMAND, POOL_TRIM_START); in test_vdev_trim()
684 fnvlist_add_nvlist(required, ZPOOL_TRIM_VDEVS, vdev_guids); in test_vdev_trim()
688 IOC_INPUT_TEST(ZFS_IOC_POOL_TRIM, pool, required, optional, EINVAL); in test_vdev_trim()
691 nvlist_free(required); in test_vdev_trim()
698 nvlist_t *required = fnvlist_alloc(); in test_scrub() local
699 fnvlist_add_uint64(required, "scan_type", POOL_SCAN_FUNCS + 1); in test_scrub()
700 fnvlist_add_uint64(required, "scan_command", POOL_SCRUB_FLAGS_END + 1); in test_scrub()
701 IOC_INPUT_TEST(ZFS_IOC_POOL_SCRUB, pool, required, NULL, EINVAL); in test_scrub()
702 nvlist_free(required); in test_scrub()
721 nvlist_t *required = fnvlist_alloc(); in test_redact() local
725 fnvlist_add_string(required, "bookname", "testbookmark"); in test_redact()
727 fnvlist_add_nvlist(required, "snapnv", snapnv); in test_redact()
729 IOC_INPUT_TEST(ZFS_IOC_REDACT, snapshot1, required, NULL, 0); in test_redact()
732 nvlist_free(required); in test_redact()
750 nvlist_t *required = fnvlist_alloc(); in test_wait() local
753 fnvlist_add_int32(required, "wait_activity", 2); in test_wait()
756 IOC_INPUT_TEST(ZFS_IOC_WAIT, pool, required, optional, EINVAL); in test_wait()
758 nvlist_free(required); in test_wait()
765 nvlist_t *required = fnvlist_alloc(); in test_wait_fs() local
767 fnvlist_add_int32(required, "wait_activity", 2); in test_wait_fs()
769 IOC_INPUT_TEST(ZFS_IOC_WAIT_FS, dataset, required, NULL, EINVAL); in test_wait_fs()
771 nvlist_free(required); in test_wait_fs()
783 nvlist_t *required = fnvlist_alloc(); in test_set_bootenv() local
785 fnvlist_add_uint64(required, "version", VB_RAW); in test_set_bootenv()
786 fnvlist_add_string(required, GRUB_ENVMAP, "test"); in test_set_bootenv()
788 IOC_INPUT_TEST_WILD(ZFS_IOC_SET_BOOTENV, pool, required, NULL, 0); in test_set_bootenv()
790 nvlist_free(required); in test_set_bootenv()