• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/geom/raid/

Lines Matching refs:vol

98 g_raid_tr_update_state_raid0(struct g_raid_volume *vol)
105 sc = vol->v_softc;
106 trs = (struct g_raid_tr_raid0_object *)vol->v_tr;
112 n = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE);
113 f = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_FAILED);
114 if (n + f == vol->v_disks_count) {
122 if (s != vol->v_state) {
123 g_raid_event_send(vol, G_RAID_VOLUME_S_ALIVE(s) ?
126 g_raid_change_volume_state(vol, s);
128 g_raid_write_metadata(sc, vol, NULL, NULL);
139 struct g_raid_volume *vol;
143 vol = tr->tro_volume;
144 sc = vol->v_softc;
152 vol->v_name, sd->sd_pos,
158 g_raid_write_metadata(sc, vol, sd, NULL);
159 g_raid_tr_update_state_raid0(vol);
167 struct g_raid_volume *vol;
170 vol = tr->tro_volume;
172 g_raid_tr_update_state_raid0(vol);
180 struct g_raid_volume *vol;
183 vol = tr->tro_volume;
186 g_raid_tr_update_state_raid0(vol);
193 struct g_raid_volume *vol;
201 vol = tr->tro_volume;
202 if (vol->v_state != G_RAID_VOLUME_S_OPTIMAL &&
203 vol->v_state != G_RAID_VOLUME_S_SUBOPTIMAL) {
215 strip_size = vol->v_strip_size;
222 no = nstripe % vol->v_disks_count;
224 offset = (nstripe / vol->v_disks_count) * strip_size;
245 cbp->bio_caller1 = &vol->v_subdisks[no];
247 if (++no >= vol->v_disks_count) {
274 struct g_raid_volume *vol;
280 vol = tr->tro_volume;
281 if (vol->v_state != G_RAID_VOLUME_S_OPTIMAL)
284 strip_size = vol->v_strip_size;
291 no = nstripe % vol->v_disks_count;
293 offset = (nstripe / vol->v_disks_count) * strip_size;
299 error = g_raid_subdisk_kerneldump(&vol->v_subdisks[no],
303 if (++no >= vol->v_disks_count) {