Lines Matching full:rm
211 cmp_code(raidz_test_opts_t *opts, const raidz_map_t *rm, const int parity) in cmp_code() argument
217 for (r = 0; r < rm->rm_nrows; r++) { in cmp_code()
218 raidz_row_t * const rr = rm->rm_row[r]; in cmp_code()
238 cmp_data(raidz_test_opts_t *opts, raidz_map_t *rm) in cmp_data() argument
242 for (r = 0; r < rm->rm_nrows; r++) { in cmp_data()
243 raidz_row_t *rr = rm->rm_row[r]; in cmp_data()
274 corrupt_colums(raidz_map_t *rm, const int *tgts, const int cnt) in corrupt_colums() argument
276 for (int r = 0; r < rm->rm_nrows; r++) { in corrupt_colums()
277 raidz_row_t *rr = rm->rm_row[r]; in corrupt_colums()
293 fini_raidz_map(zio_t **zio, raidz_map_t **rm) in fini_raidz_map() argument
295 vdev_raidz_map_free(*rm); in fini_raidz_map()
300 *rm = NULL; in fini_raidz_map()
366 raidz_map_t *rm = NULL; in init_raidz_map() local
382 rm = vdev_raidz_map_alloc_expanded(*zio, in init_raidz_map()
386 rm = vdev_raidz_map_alloc(*zio, opts->rto_ashift, in init_raidz_map()
389 VERIFY(rm); in init_raidz_map()
392 corrupt_colums(rm, ccols, parity); in init_raidz_map()
394 return (rm); in init_raidz_map()
457 run_rec_check_impl(raidz_test_opts_t *opts, raidz_map_t *rm, const int fn) in run_rec_check_impl() argument
477 if (x0 >= rm->rm_row[0]->rr_cols - raidz_parity(rm)) in run_rec_check_impl()
486 tgtidx[2] = x0 + raidz_parity(rm); in run_rec_check_impl()
488 corrupt_colums(rm, tgtidx+2, 1); in run_rec_check_impl()
491 vdev_raidz_reconstruct(rm, tgtidx, 3); in run_rec_check_impl()
493 if (cmp_data(opts, rm) != 0) { in run_rec_check_impl()
502 if (x0 >= rm->rm_row[0]->rr_cols - raidz_parity(rm)) in run_rec_check_impl()
505 if (x1 >= rm->rm_row[0]->rr_cols - in run_rec_check_impl()
506 raidz_parity(rm)) in run_rec_check_impl()
515 tgtidx[1] = x0 + raidz_parity(rm); in run_rec_check_impl()
516 tgtidx[2] = x1 + raidz_parity(rm); in run_rec_check_impl()
518 corrupt_colums(rm, tgtidx+1, 2); in run_rec_check_impl()
521 vdev_raidz_reconstruct(rm, tgtidx, 3); in run_rec_check_impl()
523 if (cmp_data(opts, rm) != 0) { in run_rec_check_impl()
533 if (x0 >= rm->rm_row[0]->rr_cols - raidz_parity(rm)) in run_rec_check_impl()
536 if (x1 >= rm->rm_row[0]->rr_cols - in run_rec_check_impl()
537 raidz_parity(rm)) in run_rec_check_impl()
540 if (x2 >= rm->rm_row[0]->rr_cols - in run_rec_check_impl()
541 raidz_parity(rm)) in run_rec_check_impl()
550 tgtidx[0] = x0 + raidz_parity(rm); in run_rec_check_impl()
551 tgtidx[1] = x1 + raidz_parity(rm); in run_rec_check_impl()
552 tgtidx[2] = x2 + raidz_parity(rm); in run_rec_check_impl()
554 corrupt_colums(rm, tgtidx, 3); in run_rec_check_impl()
557 vdev_raidz_reconstruct(rm, in run_rec_check_impl()
560 if (cmp_data(opts, rm) != 0) { in run_rec_check_impl()