Lines Matching defs:props
280 static int zfs_check_clearable(const char *dataset, nvlist_t *props,
1451 nvlist_t *config, *props = NULL;
1464 zc->zc_iflags, &props))) {
1469 if (props) {
1475 (void) nvlist_lookup_uint64(props,
1481 (void) nvlist_lookup_nvlist(props, ZPOOL_ROOTFS_PROPS, &nvl);
1486 (void) nvlist_remove_all(props, ZPOOL_ROOTFS_PROPS);
1489 (void) nvlist_lookup_nvlist(props, ZPOOL_HIDDEN_ARGS,
1495 (void) nvlist_remove_all(props, ZPOOL_HIDDEN_ARGS);
1503 if (nvlist_lookup_string(props,
1508 error = spa_create(zc->zc_name, config, props, zplprops, dcp);
1523 nvlist_free(props);
1542 nvlist_t *config, *props = NULL;
1552 zc->zc_iflags, &props))) {
1561 error = spa_import(zc->zc_name, config, props, zc->zc_cookie);
1571 nvlist_free(props);
1974 nvlist_t *config, *props = NULL;
1989 zc->zc_iflags, &props))) {
1995 error = spa_vdev_split_mirror(spa, zc->zc_string, config, props, exp);
2000 nvlist_free(props);
2136 nvl_add_zplprop(objset_t *os, nvlist_t *props, zfs_prop_t prop)
2147 VERIFY(nvlist_add_uint64(props, zfs_prop_to_name(prop), value) == 0);
2275 nvlist_t *props = NULL;
2277 zc->zc_iflags, &props);
2280 (void) nvlist_lookup_uint64(props, SNAP_ITER_MIN_TXG,
2282 (void) nvlist_lookup_uint64(props, SNAP_ITER_MAX_TXG,
2284 nvlist_free(props);
2746 props_skip(nvlist_t *props, nvlist_t *skipped, nvlist_t **newprops)
2753 while ((pair = nvlist_next_nvpair(props, pair)) != NULL) {
2762 clear_received_props(const char *dsname, nvlist_t *props,
2767 props_skip(props, skipped, &cleared_props);
2911 nvlist_t *props;
2917 zc->zc_iflags, &props)))
2924 pair = nvlist_next_nvpair(props, NULL);
2927 nvlist_next_nvpair(props, pair) == NULL) {
2930 spa_configfile_set(spa, props, B_FALSE);
2935 nvlist_free(props);
2941 nvlist_free(props);
2945 error = spa_prop_set(spa, props);
2947 nvlist_free(props);
3125 * and the creator tried to set a value for one of the props,
3228 * (optional) "props" -> { prop -> value }
3238 {"props", DATA_TYPE_NVLIST, ZK_OPTIONAL},
3255 (void) nvlist_lookup_nvlist(innvl, "props", &nvprops);
3368 * (optional) "props" -> { prop -> value }
3378 {"props", DATA_TYPE_NVLIST, ZK_OPTIONAL},
3390 (void) nvlist_lookup_nvlist(innvl, "props", &nvprops);
3428 * (optional) "props" -> { prop -> value (string) }
3435 {"props", DATA_TYPE_NVLIST, ZK_OPTIONAL},
3442 nvlist_t *props = NULL;
3446 (void) nvlist_lookup_nvlist(innvl, "props", &props);
3447 if (!nvlist_empty(props) &&
3450 if ((error = zfs_check_userprops(props)) != 0)
3478 if (!nvlist_empty(props)) {
3497 error = dsl_dataset_snapshot(snaps, props, outnvl);
4641 * Removes properties from the given props list that fail permission checks
4655 zfs_check_clearable(const char *dataset, nvlist_t *props, nvlist_t **errlist)
4662 if (props == NULL)
4669 pair = nvlist_next_nvpair(props, NULL);
4671 next_pair = nvlist_next_nvpair(props, pair);
4677 VERIFY(nvlist_remove_nvpair(props, pair) == 0);
4737 * Remove properties from props if they are not going to change (as determined
4742 props_reduce(nvlist_t *props, nvlist_t *origprops)
4747 return; /* all props need to be received */
4749 pair = nvlist_next_nvpair(props, NULL);
4754 next_pair = nvlist_next_nvpair(props, pair);
4763 (void) nvlist_remove_nvpair(props, pair);
4779 * libzfs will need to be judicious handling errors encountered by props
4783 extract_delay_props(nvlist_t *props)
4796 for (nvp = nvlist_next_nvpair(props, NULL); nvp != NULL;
4797 nvp = nvlist_next_nvpair(props, nvp)) {
4809 tmp = nvlist_prev_nvpair(props, nvp);
4811 VERIFY(nvlist_remove_nvpair(props, nvp) == 0);
5027 * Merge delayed props back in with initial props, in case
5053 * On error, restore the original props.
5101 /* Restore original props */
5217 * Now that all props, initial and delayed, are set, report the prop
5238 * (optional) "props" -> received properties to set (nvlist)
5258 {"props", DATA_TYPE_NVLIST, ZK_OPTIONAL},
5315 /* we still use "props" here for backwards compatibility */
5316 error = nvlist_lookup_nvlist(innvl, "props", &recvprops);
6787 * "props" (optional) -> { prop -> value }
6795 {"props", DATA_TYPE_NVLIST, ZK_OPTIONAL},
6813 (void) nvlist_lookup_nvlist(innvl, "props", &args);