Lines Matching refs:propname
73 dsl_prop_get_dd(dsl_dir_t *dd, const char *propname,
90 prop = zfs_name_to_prop(propname);
92 inheritstr = kmem_asprintf("%s%s", propname, ZPROP_INHERIT_SUFFIX);
93 recvdstr = kmem_asprintf("%s%s", propname, ZPROP_RECVD_SUFFIX);
110 propname, intsz, numints, buf);
163 dsl_prop_get_ds(dsl_dataset_t *ds, const char *propname,
166 zfs_prop_t prop = zfs_name_to_prop(propname);
181 err = zap_lookup(mos, zapobj, propname, intsz, numints, buf);
193 char *inheritstr = kmem_asprintf("%s%s", propname,
203 char *recvdstr = kmem_asprintf("%s%s", propname,
218 return (dsl_prop_get_dd(ds->ds_dir, propname,
223 dsl_prop_record_find(dsl_dir_t *dd, const char *propname)
231 if (strcmp(pr->pr_propname, propname) == 0)
239 dsl_prop_record_create(dsl_dir_t *dd, const char *propname)
246 pr->pr_propname = spa_strdup(propname);
282 dsl_prop_register(dsl_dataset_t *ds, const char *propname,
294 err = dsl_prop_get_int_ds(ds, propname, &value);
304 pr = dsl_prop_record_find(dd, propname);
306 pr = dsl_prop_record_create(dd, propname);
317 dsl_prop_get(const char *dsname, const char *propname,
327 error = dsl_prop_get_ds(dmu_objset_ds(os), propname,
343 dsl_prop_get_integer(const char *ddname, const char *propname,
346 return (dsl_prop_get(ddname, propname, 8, 1, valuep, setpoint));
350 dsl_prop_get_int_ds(dsl_dataset_t *ds, const char *propname,
353 return (dsl_prop_get_ds(ds, propname, 8, 1, valuep, NULL));
367 dsl_prop_predict(dsl_dir_t *dd, const char *propname,
370 zfs_prop_t prop = zfs_name_to_prop(propname);
389 recvdstr = kmem_asprintf("%s%s", propname, ZPROP_RECVD_SUFFIX);
414 err = zap_lookup(mos, zapobj, propname, 8, 1, newvalp);
423 err = zap_lookup(mos, zapobj, propname, 8, 1, newvalp);
447 dsl_prop_unregister(dsl_dataset_t *ds, const char *propname,
459 strcmp(cbr->cbr_pr->pr_propname, propname) == 0)
577 const char *propname, uint64_t value, int first)
598 propname);
607 pr = dsl_prop_record_find(dd, propname);
629 zap_contains(mos, propobj, propname) != 0)
643 propname, value, FALSE);
651 dsl_prop_set_sync_impl(dsl_dataset_t *ds, const char *propname,
666 isint = (dodefault(zfs_name_to_prop(propname), 8, 1, &intval) == 0);
693 inheritstr = kmem_asprintf("%s%s", propname, ZPROP_INHERIT_SUFFIX);
694 recvdstr = kmem_asprintf("%s%s", propname, ZPROP_RECVD_SUFFIX);
700 * - remove propname
701 * - remove propname$inherit
703 err = zap_remove(mos, zapobj, propname, tx);
710 * remove propname$inherit
711 * set propname -> value
715 VERIFY0(zap_update(mos, zapobj, propname,
721 * - remove propname
722 * - set propname$inherit
724 err = zap_remove(mos, zapobj, propname, tx);
735 * set propname$recvd -> value
744 * - remove propname
745 * - remove propname$inherit
746 * - remove propname$recvd
748 err = zap_remove(mos, zapobj, propname, tx);
755 * remove propname$recvd
780 VERIFY0(dsl_prop_get_int_ds(ds, propname, &intval));
793 propname) == 0)
799 ds->ds_dir->dd_object, propname, intval, TRUE);
810 if (dsl_prop_get_ds(ds, propname, 1,
818 "%s=%s", propname, (valstr == NULL ? "" : valstr));
825 dsl_prop_set_int(const char *dsname, const char *propname,
831 fnvlist_add_uint64(nvl, propname, value);
838 dsl_prop_set_string(const char *dsname, const char *propname,
844 fnvlist_add_string(nvl, propname, value);
851 dsl_prop_inherit(const char *dsname, const char *propname,
857 fnvlist_add_boolean(nvl, propname);
1000 const char *propname;
1013 propname = za.za_name;
1024 propname = buf;
1028 err = zap_contains(mos, propobj, propname);
1035 valstr = kmem_asprintf("%s%s", propname,
1055 prop = zfs_name_to_prop(propname);
1068 if (nvlist_exists(nv, propname))
1097 VERIFY(nvlist_add_nvlist(nv, propname, propval) == 0);
1233 const char *propname = zfs_prop_to_name(prop);
1236 if (nvlist_lookup_nvlist(nv, propname, &propval) == 0) {
1248 VERIFY(nvlist_add_nvlist(nv, propname, propval) == 0);
1256 const char *propname = zfs_prop_to_name(prop);
1258 if (nvlist_lookup_nvlist(nv, propname, &propval) == 0) {
1265 VERIFY(nvlist_add_nvlist(nv, propname, propval) == 0);