Lines Matching defs:errors
88 * list of errors, and it will be "smushed" down to fit into the
128 * - To return multiple errors from an ioctl which makes on-disk
246 nvlist_t **errors);
519 * Returns 0 for success, non-zero for access and other errors.
1359 nvlist_smush(nvlist_t *errors, size_t max)
1363 size = fnvlist_size(errors);
1372 fnvlist_add_int32(errors, ZPROP_N_MORE_ERRORS, 0);
1373 more_errors = nvlist_prev_nvpair(errors, NULL);
1376 nvpair_t *pair = nvlist_prev_nvpair(errors,
1378 fnvlist_remove_nvpair(errors, pair);
1380 size = fnvlist_size(errors);
1383 fnvlist_remove_nvpair(errors, more_errors);
1384 fnvlist_add_int32(errors, ZPROP_N_MORE_ERRORS, n);
1385 ASSERT3U(fnvlist_size(errors), <=, max);
2749 nvlist_t *errors;
2768 errors = fnvlist_alloc();
2770 error = zfs_set_prop_nvlist(zc->zc_name, source, nvl, errors);
2772 if (zc->zc_nvlist_dst != 0 && errors != NULL) {
2773 (void) put_nvlist(zc, errors);
2776 nvlist_free(errors);
3857 * the SPA supports it. We ignore any errors here since
4069 nvlist_t *errors;
4075 VERIFY(nvlist_alloc(&errors, NV_UNIQUE_NAME, KM_SLEEP) == 0);
4087 VERIFY(nvlist_add_int32(errors,
4094 if ((pair = nvlist_next_nvpair(errors, NULL)) == NULL) {
4095 nvlist_free(errors);
4096 errors = NULL;
4102 nvlist_free(errors);
4104 *errlist = errors;
4210 nvlist_t *errors;
4245 errors = fnvlist_alloc();
4284 (void) nvlist_merge(errors, errlist, 0);
4300 props, errors);
4305 (nvlist_smush(errors, zc->zc_nvlist_dst_size) != 0 ||
4306 put_nvlist(zc, errors) != 0)) {
4396 nvlist_free(errors);