Lines Matching refs:vol

95 g_raid_tr_update_state_raid0(struct g_raid_volume *vol)
102 sc = vol->v_softc;
103 trs = (struct g_raid_tr_raid0_object *)vol->v_tr;
109 n = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_ACTIVE);
110 f = g_raid_nsubdisks(vol, G_RAID_SUBDISK_S_FAILED);
111 if (n + f == vol->v_disks_count) {
119 if (s != vol->v_state) {
120 g_raid_event_send(vol, G_RAID_VOLUME_S_ALIVE(s) ?
123 g_raid_change_volume_state(vol, s);
125 g_raid_write_metadata(sc, vol, NULL, NULL);
136 struct g_raid_volume *vol;
140 vol = tr->tro_volume;
141 sc = vol->v_softc;
149 vol->v_name, sd->sd_pos,
155 g_raid_write_metadata(sc, vol, sd, NULL);
156 g_raid_tr_update_state_raid0(vol);
164 struct g_raid_volume *vol;
167 vol = tr->tro_volume;
169 g_raid_tr_update_state_raid0(vol);
177 struct g_raid_volume *vol;
180 vol = tr->tro_volume;
183 g_raid_tr_update_state_raid0(vol);
190 struct g_raid_volume *vol;
198 vol = tr->tro_volume;
199 if (vol->v_state != G_RAID_VOLUME_S_OPTIMAL &&
200 vol->v_state != G_RAID_VOLUME_S_SUBOPTIMAL) {
212 strip_size = vol->v_strip_size;
219 no = nstripe % vol->v_disks_count;
221 offset = (nstripe / vol->v_disks_count) * strip_size;
242 cbp->bio_caller1 = &vol->v_subdisks[no];
244 if (++no >= vol->v_disks_count) {
271 struct g_raid_volume *vol;
277 vol = tr->tro_volume;
278 if (vol->v_state != G_RAID_VOLUME_S_OPTIMAL)
281 strip_size = vol->v_strip_size;
288 no = nstripe % vol->v_disks_count;
290 offset = (nstripe / vol->v_disks_count) * strip_size;
296 error = g_raid_subdisk_kerneldump(&vol->v_subdisks[no],
300 if (++no >= vol->v_disks_count) {