Lines Matching +defs:val +defs:current

65     zprop_source_t *src, char **source, uint64_t *val,
1854 "'%s' is greater than current "
2015 "size is less than current used or "
2160 * bogus characters relative to current locale,
2601 * ZPROP_VALUE -> current effective value (string or uint64)
2602 * ZPROP_SOURCE -> source of the current effective value (string)
2804 * If they differ from the on-disk values, report the current values and mark
2807 * if the current effective value is not the persistent value).
2818 char **source, uint64_t *val, boolean_t get_persistent,
2897 *val = getprop_uint64(zhp, prop, source);
2902 if (hasmntopt(&mnt, mntopt_on) && !*val) {
2906 *val = B_TRUE;
2910 } else if (hasmntopt(&mnt, mntopt_off) && *val) {
2914 *val = B_FALSE;
2927 *val = getprop_uint64(zhp, prop, source);
2936 *val = (zhp->zfs_mntopts != NULL);
2940 *val = ((zhp->zfs_mntopts != NULL) &&
2945 *val = zhp->zfs_dmustats.dds_num_clones;
2963 val) != 0) {
2976 *val = getprop_uint64(zhp, prop, source);
3075 * current -- filesystem name that inherits the share name
3080 * (i.e. basename=myshare, source=a/b, current=a/b/c)
3084 * Compute the relative path from source to current, append it to basename
3094 const char *current, char *buf, size_t buflen)
3099 (void) strlcpy(sharename, current, sizeof (sharename));
3103 len = zfs_strstarts(current, source, 0);
3107 relpath = current + len;
3194 uint64_t val;
3249 val = getprop_uint64(zhp, prop, &source);
3250 time_t time = (time_t)val;
3253 if (val == 0) {
3259 (void) snprintf(propbuf, proplen, "%llu", val);
3477 if (get_numeric_property(zhp, prop, src, &source, &val,
3484 if (val & pi->pi_value) {
3608 if (get_numeric_property(zhp, prop, src, &source, &val,
3618 if (val == 0) {
3626 (u_longlong_t)val);
3628 zfs_nicenum(val, propbuf, proplen);
3633 if (get_numeric_property(zhp, prop, src, &source, &val,
3637 (u_longlong_t)(val / 100),
3638 (u_longlong_t)(val % 100));
3667 if (get_numeric_property(zhp, prop, src, &source, &val,
3670 if (val)
3768 &source, &val, flags.persistent,
3773 (u_longlong_t)val);
3775 zfs_nicenum(val, propbuf, proplen);
3785 &source, &val, flags.persistent,
3788 if (zfs_prop_index_to_string(prop, val, &strval) != 0)
4089 uint64_t val;
4091 (void) get_numeric_property(zhp, prop, NULL, &source, &val, B_FALSE,
4094 return (val);
4098 zfs_prop_set_int(zfs_handle_t *zhp, zfs_prop_t prop, uint64_t val)
4102 (void) snprintf(buf, sizeof (buf), "%llu", (longlong_t)val);
5774 /* new name cannot be a child of the current dataset name */
5778 "current dataset name"));