-
- mirror_id = comp_array[idx].lrc_mirror_id;
- end = comp_array[idx].lrc_end;
-
- printf("%s: resyncing mirror: %u, components: %u ",
- fname, mirror_id, comp_array[idx].lrc_id);
-
- for (i = idx + 1; i < comp_size; i++) {
- if (mirror_id != comp_array[i].lrc_mirror_id ||
- end != comp_array[i].lrc_start)
- break;
-
- printf("%u ", comp_array[i].lrc_id);
- end = comp_array[i].lrc_end;
- }
- printf("\b\n");
-
- res = mirror_resync_one(fd, layout, mirror_id,
- comp_array[idx].lrc_start, end);
- if (res > 0) {
- int j;
-
- printf("components synced: ");
- for (j = idx; j < i; j++) {
- comp_array[j].lrc_synced = true;
- printf("%u ", comp_array[j].lrc_id);
- }
- printf("\n");
- }
-
- if (res < 0)
- free(ioc);
- syserrx(res < 0, "llapi_mirror_copy_many");
-
- idx = i;