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

/freebsd-13-stable/sys/geom/raid/
H A Dtr_raid1e.c195 struct g_raid_subdisk *sd, *bestsd, *worstsd; local
201 bestsd = &vol->v_subdisks[i * N];
204 if (sd->sd_state > bestsd->sd_state)
205 bestsd = sd;
206 else if (sd->sd_state == bestsd->sd_state &&
209 sd->sd_rebuild_pos > bestsd->sd_rebuild_pos)
210 bestsd = sd;
212 if (bestsd->sd_state >= G_RAID_SUBDISK_S_UNINITIALIZED &&
213 bestsd->sd_state != G_RAID_SUBDISK_S_ACTIVE) {
217 vol->v_name, bestsd
248 struct g_raid_subdisk *sd, *bestsd, *worstsd; local
[all...]
H A Dtr_raid1.c156 struct g_raid_subdisk *tsd, *bestsd; local
175 bestsd = &vol->v_subdisks[0];
178 if (tsd->sd_state > bestsd->sd_state)
179 bestsd = tsd;
180 else if (tsd->sd_state == bestsd->sd_state &&
183 tsd->sd_rebuild_pos > bestsd->sd_rebuild_pos)
184 bestsd = tsd;
186 if (bestsd->sd_state >= G_RAID_SUBDISK_S_UNINITIALIZED) {
190 vol->v_name, bestsd->sd_pos,
191 g_raid_subdisk_state2str(bestsd
[all...]

Completed in 30 milliseconds