Searched refs:bestsd (Results 1 - 2 of 2) sorted by relevance

/freebsd-11-stable/sys/geom/raid/
H A Dtr_raid1e.c192 struct g_raid_subdisk *sd, *bestsd, *worstsd; local
198 bestsd = &vol->v_subdisks[i * N];
201 if (sd->sd_state > bestsd->sd_state)
202 bestsd = sd;
203 else if (sd->sd_state == bestsd->sd_state &&
206 sd->sd_rebuild_pos > bestsd->sd_rebuild_pos)
207 bestsd = sd;
209 if (bestsd->sd_state >= G_RAID_SUBDISK_S_UNINITIALIZED &&
210 bestsd->sd_state != G_RAID_SUBDISK_S_ACTIVE) {
214 vol->v_name, bestsd
245 struct g_raid_subdisk *sd, *bestsd, *worstsd; local
[all...]
H A Dtr_raid1.c153 struct g_raid_subdisk *tsd, *bestsd; local
172 bestsd = &vol->v_subdisks[0];
175 if (tsd->sd_state > bestsd->sd_state)
176 bestsd = tsd;
177 else if (tsd->sd_state == bestsd->sd_state &&
180 tsd->sd_rebuild_pos > bestsd->sd_rebuild_pos)
181 bestsd = tsd;
183 if (bestsd->sd_state >= G_RAID_SUBDISK_S_UNINITIALIZED) {
187 vol->v_name, bestsd->sd_pos,
188 g_raid_subdisk_state2str(bestsd
[all...]

Completed in 316 milliseconds