Lines Matching defs:props
613 parseprop(nvlist_t *props, char *propname)
624 if (nvlist_exists(props, propname)) {
629 if (nvlist_add_string(props, propname, propval) != 0)
639 parsepropname(nvlist_t *props, char *propname)
646 if (nvlist_exists(props, propname)) {
651 if (nvlist_add_boolean(props, propname) != 0)
823 nvlist_t *props;
827 if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0)
834 if (!parseprop(props, optarg)) {
835 nvlist_free(props);
870 nvlist_free(props);
884 nvlist_free(props);
889 nvlist_free(props);
895 ret = zfs_clone(zhp, argv[1], props);
908 nvlist_free(props);
914 nvlist_free(props);
925 default_volblocksize(zpool_handle_t *zhp, nvlist_t *props)
989 if (nvlist_lookup_uint64(props, prop, &volblocksize) == 0) {
1014 fnvlist_add_uint64(props, prop, volblocksize);
1061 nvlist_t *props;
1065 if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0)
1080 if (nvlist_add_uint64(props,
1101 if (nvlist_add_uint64(props,
1110 if (!parseprop(props, optarg))
1173 if (props && (real_props = zfs_valid_proplist(g_zfs, type,
1174 props, 0, NULL, zpool_handle, B_TRUE, msg)) == NULL) {
1186 nvlist_lookup_string(props, prop, &strval) != 0) {
1190 nvlist_add_string(props, prop, strval);
1202 if (nvlist_add_uint64(props,
1204 nvlist_free(props);
1224 if (nvlist_lookup_string(props, zfs_prop_to_name(resv_prop),
1226 if (nvlist_add_uint64(props,
1228 nvlist_free(props);
1264 while ((nvp = nvlist_next_nvpair(props, nvp)) != NULL) {
1295 if (zfs_create(g_zfs, argv[0], type, props) != 0)
1310 nvlist_free(props);
1313 nvlist_free(props);
2866 nvlist_t *props;
2878 if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0)
2882 node->usn_nvl = props;
2917 nvlist_free(props);
2953 nvlist_add_boolean_value(props, "smbentity", smbentity) != 0)
2962 if (nvlist_add_uint32(props, "type", type) != 0)
2967 if (nvlist_add_uint64(props, "name", rid) != 0)
2971 if (nvlist_add_string(props, "name", name) != 0)
2986 nvlist_free(props);
2989 props = node->usn_nvl;
3010 if (!nvlist_exists(props, "quota"))
3011 (void) nvlist_add_uint64(props, "quota", 0);
3015 if (!nvlist_exists(props, "used"))
3016 (void) nvlist_add_uint64(props, "used", 0);
3020 if (!nvlist_exists(props, "objquota"))
3021 (void) nvlist_add_uint64(props, "objquota", 0);
3026 if (!nvlist_exists(props, "objused"))
3027 (void) nvlist_add_uint64(props, "objused", 0);
3035 if (nvlist_add_uint64(props, propname, space) != 0)
4186 nvlist_t *props = data;
4188 if (zfs_prop_set_list(zhp, props) != 0) {
4207 nvlist_t *props = NULL;
4254 if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0)
4257 if (!parseprop(props, argv[i])) {
4264 ZFS_TYPE_DATASET, NULL, NULL, 0, set_callback, props);
4267 nvlist_free(props);
4314 nvlist_t *props;
4318 if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0)
4327 if (!parseprop(props, optarg)) {
4329 nvlist_free(props);
4372 ret = zfs_snapshot_nvl(g_zfs, sd.sd_nvl, props);
4374 nvlist_free(props);
4381 nvlist_free(props);
4407 {"props", no_argument, NULL, 'p'},
4448 flags.props = B_TRUE;
4541 if (fromname != NULL || flags.replicate || flags.props ||
4565 if (fromname != NULL || flags.replicate || flags.props ||
4753 nvlist_t *props;
4755 if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0)
4762 if (!parseprop(props, optarg)) {
4763 nvlist_free(props);
4768 if (!parsepropname(props, optarg)) {
4769 nvlist_free(props);
4860 nvlist_free(props);
4877 nvlist_free(props);
4884 nvlist_free(props);
4893 nvlist_free(props);
4896 err = zfs_receive(g_zfs, argv[0], props, &flags, STDIN_FILENO, NULL);
4897 nvlist_free(props);
5654 const char *props[ZFS_NUM_PROPS];
5690 props[count++] = pd->pd_name;
5692 props[count] = NULL;
5694 qsort(props, count, sizeof (char *), prop_cmp);
5697 (void) fprintf(fp, fmt, props[i], gettext("property"), "");
8251 nvlist_t *props = fnvlist_alloc();
8262 if (!parseprop(props, optarg)) {
8263 nvlist_free(props);
8274 if (inheritkey && !nvlist_empty(props)) {
8303 nvlist_free(props);
8313 ret = zfs_crypto_rewrap(zhp, props, inheritkey);
8315 nvlist_free(props);
8320 nvlist_free(props);