Lines Matching full:tunable
157 * <name> show named tunable and value
158 * <name>=<value> set tunable value
161 * show=<name> show named tunable and value
163 * info=<name> show info about named tunable
169 list_tunables_cb(const zfs_tunable_t *tunable, void *arg) in list_tunables_cb() argument
182 int err = zfs_tunable_get(tunable, val, sizeof (val)); in list_tunables_cb()
184 printf("%s: %s\n", tunable->zt_name, val); in list_tunables_cb()
186 printf("%s: [error getting tunable value: %s]\n", in list_tunables_cb()
187 tunable->zt_name, strerror(err)); in list_tunables_cb()
189 printf("%s [%s %s]: %s\n", tunable->zt_name, in list_tunables_cb()
190 type[tunable->zt_type], perm[tunable->zt_perm], in list_tunables_cb()
191 tunable->zt_desc); in list_tunables_cb()
226 const zfs_tunable_t *tunable = zfs_tunable_lookup(k); in handle_tunable_option() local
227 if (tunable == NULL) { in handle_tunable_option()
233 if (zfs_tunable_get(tunable, vold, sizeof (vold)) != 0) in handle_tunable_option()
235 err = zfs_tunable_set(tunable, v); in handle_tunable_option()
238 if (zfs_tunable_get(tunable, vnew, sizeof (vnew)) != 0) in handle_tunable_option()
244 const zfs_tunable_t *tunable = zfs_tunable_lookup(k); in handle_tunable_option() local
245 if (tunable == NULL) { in handle_tunable_option()
249 list_tunables_cb(tunable, &mode); in handle_tunable_option()
257 fprintf(stderr, "no such tunable: %s\n", k); in handle_tunable_option()
259 fprintf(stderr, "couldn't set tunable '%s': %s\n", in handle_tunable_option()