Lines Matching full:fsd
343 struct g_raid_subdisk *sd, *fsd; in g_raid_tr_raid1_rebuild_start() local
359 fsd = g_raid_get_subdisk(vol, G_RAID_SUBDISK_S_RESYNC); in g_raid_tr_raid1_rebuild_start()
360 if (fsd == NULL) in g_raid_tr_raid1_rebuild_start()
361 fsd = g_raid_get_subdisk(vol, G_RAID_SUBDISK_S_REBUILD); in g_raid_tr_raid1_rebuild_start()
362 if (fsd == NULL) { in g_raid_tr_raid1_rebuild_start()
363 fsd = g_raid_get_subdisk(vol, G_RAID_SUBDISK_S_STALE); in g_raid_tr_raid1_rebuild_start()
364 if (fsd != NULL) { in g_raid_tr_raid1_rebuild_start()
365 fsd->sd_rebuild_pos = 0; in g_raid_tr_raid1_rebuild_start()
366 g_raid_change_subdisk_state(fsd, in g_raid_tr_raid1_rebuild_start()
368 g_raid_write_metadata(vol->v_softc, vol, fsd, NULL); in g_raid_tr_raid1_rebuild_start()
370 fsd = g_raid_get_subdisk(vol, in g_raid_tr_raid1_rebuild_start()
372 if (fsd == NULL) in g_raid_tr_raid1_rebuild_start()
373 fsd = g_raid_get_subdisk(vol, in g_raid_tr_raid1_rebuild_start()
375 if (fsd != NULL) { in g_raid_tr_raid1_rebuild_start()
376 fsd->sd_rebuild_pos = 0; in g_raid_tr_raid1_rebuild_start()
377 g_raid_change_subdisk_state(fsd, in g_raid_tr_raid1_rebuild_start()
380 vol, fsd, NULL); in g_raid_tr_raid1_rebuild_start()
384 if (fsd == NULL) { in g_raid_tr_raid1_rebuild_start()
389 trs->trso_failed_sd = fsd; in g_raid_tr_raid1_rebuild_start()
392 fsd->sd_volume->v_name, fsd->sd_pos, in g_raid_tr_raid1_rebuild_start()
393 fsd->sd_disk ? g_raid_get_diskname(fsd->sd_disk) : "[none]", in g_raid_tr_raid1_rebuild_start()