Lines Matching refs:props

244 static int zfs_check_clearable(char *dataset, nvlist_t *props,
1467 nvlist_t *config, *props = NULL;
1477 zc->zc_iflags, &props))) {
1482 if (props) {
1486 (void) nvlist_lookup_uint64(props,
1492 (void) nvlist_lookup_nvlist(props, ZPOOL_ROOTFS_PROPS, &nvl);
1497 nvlist_free(props);
1500 (void) nvlist_remove_all(props, ZPOOL_ROOTFS_PROPS);
1509 error = spa_create(zc->zc_name, config, props, zplprops);
1522 nvlist_free(props);
1541 nvlist_t *config, *props = NULL;
1551 zc->zc_iflags, &props))) {
1560 error = spa_import(zc->zc_name, config, props, zc->zc_cookie);
1571 nvlist_free(props);
1983 nvlist_t *config, *props = NULL;
1998 zc->zc_iflags, &props))) {
2004 error = spa_vdev_split_mirror(spa, zc->zc_string, config, props, exp);
2009 nvlist_free(props);
2142 nvl_add_zplprop(objset_t *os, nvlist_t *props, zfs_prop_t prop)
2153 VERIFY(nvlist_add_uint64(props, zfs_prop_to_name(prop), value) == 0);
2665 props_skip(nvlist_t *props, nvlist_t *skipped, nvlist_t **newprops)
2672 while ((pair = nvlist_next_nvpair(props, pair)) != NULL) {
2681 clear_received_props(const char *dsname, nvlist_t *props,
2686 props_skip(props, skipped, &cleared_props);
2827 nvlist_t *props;
2833 zc->zc_iflags, &props))
2840 pair = nvlist_next_nvpair(props, NULL);
2843 nvlist_next_nvpair(props, pair) == NULL) {
2846 spa_configfile_set(spa, props, B_FALSE);
2851 nvlist_free(props);
2857 nvlist_free(props);
2861 error = spa_prop_set(spa, props);
2863 nvlist_free(props);
3061 * and the creator tried to set a value for one of the props,
3165 * (optional) "props" -> { prop -> value }
3184 (void) nvlist_lookup_nvlist(innvl, "props", &nvprops);
3269 * (optional) "props" -> { prop -> value }
3283 (void) nvlist_lookup_nvlist(innvl, "props", &nvprops);
3310 * (optional) "props" -> { prop -> value (string) }
3319 nvlist_t *props = NULL;
3323 (void) nvlist_lookup_nvlist(innvl, "props", &props);
3324 if ((error = zfs_check_userprops(poolname, props)) != 0)
3327 if (!nvlist_empty(props) &&
3364 error = dsl_dataset_snapshot(snaps, props, outnvl);
3972 * Removes properties from the given props list that fail permission checks
3986 zfs_check_clearable(char *dataset, nvlist_t *props, nvlist_t **errlist)
3993 if (props == NULL)
4000 pair = nvlist_next_nvpair(props, NULL);
4002 next_pair = nvlist_next_nvpair(props, pair);
4007 VERIFY(nvlist_remove_nvpair(props, pair) == 0);
4067 * Remove properties from props if they are not going to change (as determined
4072 props_reduce(nvlist_t *props, nvlist_t *origprops)
4077 return; /* all props need to be received */
4079 pair = nvlist_next_nvpair(props, NULL);
4084 next_pair = nvlist_next_nvpair(props, pair);
4093 (void) nvlist_remove_nvpair(props, pair);
4109 * libzfs will need to be judicious handling errors encountered by props
4113 extract_delay_props(nvlist_t *props)
4122 for (nvp = nvlist_next_nvpair(props, NULL); nvp != NULL;
4123 nvp = nvlist_next_nvpair(props, nvp)) {
4135 tmp = nvlist_prev_nvpair(props, nvp);
4137 VERIFY(nvlist_remove_nvpair(props, nvp) == 0);
4183 nvlist_t *props = NULL; /* sent properties */
4202 zc->zc_iflags, &props)) != 0)
4208 nvlist_free(props);
4227 if (props != NULL && !drc.drc_newfs) {
4249 props_reduce(props, origprops);
4255 first_recvd_props ? NULL : props) != 0)
4262 if (props != NULL) {
4266 delayprops = extract_delay_props(props);
4268 props, errors);
4308 * Merge delayed props back in with initial props, in case
4316 ASSERT(nvlist_merge(props, delayprops, 0) == 0);
4321 * Now that all props, initial and delayed, are set, report the prop
4345 * On error, restore the original props.
4347 if (error != 0 && props != NULL && !drc.drc_newfs) {
4348 if (clear_received_props(tofs, props, NULL) != 0) {
4382 nvlist_free(props);