Lines Matching refs:errors
89 * list of errors, and it will be "smushed" down to fit into the
129 * - To return multiple errors from an ioctl which makes on-disk
245 nvlist_t **errors);
523 * Returns 0 for success, non-zero for access and other errors.
1339 nvlist_smush(nvlist_t *errors, size_t max)
1343 size = fnvlist_size(errors);
1352 fnvlist_add_int32(errors, ZPROP_N_MORE_ERRORS, 0);
1353 more_errors = nvlist_prev_nvpair(errors, NULL);
1356 nvpair_t *pair = nvlist_prev_nvpair(errors,
1358 fnvlist_remove_nvpair(errors, pair);
1360 size = fnvlist_size(errors);
1363 fnvlist_remove_nvpair(errors, more_errors);
1364 fnvlist_add_int32(errors, ZPROP_N_MORE_ERRORS, n);
1365 ASSERT3U(fnvlist_size(errors), <=, max);
2717 nvlist_t *errors;
2736 errors = fnvlist_alloc();
2738 error = zfs_set_prop_nvlist(zc->zc_name, source, nvl, errors);
2740 if (zc->zc_nvlist_dst != NULL && errors != NULL) {
2741 (void) put_nvlist(zc, errors);
2744 nvlist_free(errors);
3788 * the SPA supports it. We ignore any errors here since
3990 nvlist_t *errors;
3996 VERIFY(nvlist_alloc(&errors, NV_UNIQUE_NAME, KM_SLEEP) == 0);
4008 VERIFY(nvlist_add_int32(errors,
4015 if ((pair = nvlist_next_nvpair(errors, NULL)) == NULL) {
4016 nvlist_free(errors);
4017 errors = NULL;
4023 nvlist_free(errors);
4025 *errlist = errors;
4109 * libzfs will need to be judicious handling errors encountered by props
4181 nvlist_t *errors;
4212 errors = fnvlist_alloc();
4251 (void) nvlist_merge(errors, errlist, 0);
4268 props, errors);
4302 delayprops, errors);
4322 * errors to the caller.
4325 (nvlist_smush(errors, zc->zc_nvlist_dst_size) != 0 ||
4326 put_nvlist(zc, errors) != 0)) {
4384 nvlist_free(errors);