Lines Matching defs:props
771 add_prop_list(const char *propname, char *propval, nvlist_t **props,
779 if (*props == NULL &&
780 nvlist_alloc(props, NV_UNIQUE_NAME, 0) != 0) {
786 proplist = *props;
871 add_prop_list_default(const char *propname, char *propval, nvlist_t **props,
876 if (nvlist_lookup_string(*props, propname, &pval) == 0)
879 return (add_prop_list(propname, propval, props, B_TRUE));
909 nvlist_t *props = NULL;
937 (add_prop_list(optarg, propval, &props, B_TRUE)))
979 if (!nvlist_exists(props, ZPOOL_CONFIG_ASHIFT)) {
988 &props, B_TRUE) == 0);
993 nvroot = make_root_vdev(zhp, props, force, !force, B_FALSE, dryrun,
1101 nvlist_free(props);
1411 nvlist_t *props = NULL;
1429 ZPOOL_PROP_ALTROOT), optarg, &props, B_TRUE))
1432 ZPOOL_PROP_CACHEFILE), "none", &props, B_TRUE))
1448 if (add_prop_list(optarg, propval, &props, B_TRUE))
1507 ZPOOL_PROP_TNAME), optarg, &props, B_TRUE))
1510 ZPOOL_PROP_CACHEFILE), "none", &props, B_TRUE))
1553 nvroot = make_root_vdev(NULL, props, force, !force, B_FALSE, dryrun,
1673 * props contains list of features to enable.
1691 if (!nvlist_lookup_string(props, propname, &propval)) {
1693 (void) nvlist_remove_all(props,
1708 ZFS_FEATURE_ENABLED, &props, B_TRUE);
1716 nvroot, props, fsprops) == 0) {
1735 nvlist_free(props);
1739 nvlist_free(props);
3058 nvlist_t *props, int flags)
3132 if (zpool_import_props(g_zfs, config, newname, props, flags) != 0)
3163 import_pools(nvlist_t *pools, nvlist_t *props, char *mntopts, int flags,
3203 props, flags);
3263 mntopts, props, flags);
3472 nvlist_t *props = NULL;
3540 &props, B_TRUE))
3548 ZPOOL_PROP_ALTROOT), optarg, &props, B_TRUE))
3551 ZPOOL_PROP_CACHEFILE), "none", &props, B_TRUE))
3560 ZPOOL_PROP_CACHEFILE), "none", &props, B_TRUE))
3661 nvlist_free(props);
3763 nvlist_free(props);
3767 err = import_pools(pools, props, mntopts, flags, argv[0],
3789 err = import_pools(pools, props, mntopts, flags, argv[0],
3795 nvlist_free(props);
6285 char *props = default_props;
6304 props = optarg;
6336 if (zprop_get_list(g_zfs, props, &cb.cb_proplist, ZFS_TYPE_POOL) != 0)
6389 nvlist_t *props = NULL;
6409 (add_prop_list(optarg, propval, &props, B_TRUE)))
6465 nvlist_free(props);
6473 nvlist_free(props);
6478 if (!nvlist_exists(props, ZPOOL_CONFIG_ASHIFT)) {
6487 &props, B_TRUE) == 0);
6491 nvroot = make_root_vdev(zhp, props, force, B_FALSE, replacing, B_FALSE,
6495 nvlist_free(props);
6506 nvlist_free(props);
6638 nvlist_t *config, *props = NULL;
6657 &props, B_TRUE) != 0) {
6658 nvlist_free(props);
6673 &props, B_TRUE) != 0) {
6674 nvlist_free(props);
6728 nvlist_free(props);
6732 config = split_mirror_vdev(zhp, newpool, props, flags, argc, argv);
6752 nvlist_free(props);
6762 nvlist_free(props);
6782 nvlist_free(props);