Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/cmd/raidz_test/raidz_test.c
Show First 20 Lines • Show All 486 Lines • ▼ Show 20 Lines | for (int c = 0; c < rr->rr_cols; c++, child_id++) { | ||||
if (c < bc || r == 0) { | if (c < bc || r == 0) { | ||||
off = dc * rows + row; | off = dc * rows + row; | ||||
} else { | } else { | ||||
off = r * rows + | off = r * rows + | ||||
(dc - r) * (rows - 1) + row; | (dc - r) * (rows - 1) + row; | ||||
} | } | ||||
rr->rr_col[c].rc_size = 1ULL << ashift; | rr->rr_col[c].rc_size = 1ULL << ashift; | ||||
rr->rr_col[c].rc_abd = | rr->rr_col[c].rc_abd = abd_get_offset_struct( | ||||
abd_get_offset(abd, off << ashift); | &rr->rr_col[c].rc_abdstruct, | ||||
abd, off << ashift, 1 << ashift); | |||||
} | } | ||||
asize += rr->rr_col[c].rc_size; | asize += rr->rr_col[c].rc_size; | ||||
} | } | ||||
/* | /* | ||||
* If all data stored spans all columns, there's a danger that | * If all data stored spans all columns, there's a danger that | ||||
* parity will always be on the same device and, since parity | * parity will always be on the same device and, since parity | ||||
* isn't read during normal operation, that that device's I/O | * isn't read during normal operation, that that device's I/O | ||||
▲ Show 20 Lines • Show All 518 Lines • Show Last 20 Lines |