static DWORD WINAPI Salvage(LPVOID param) { afs_status_t nStatus; void *hServer; int nResult; nResult = bos_ServerOpen(g_hCell, GetHostnameA(), &hServer, &nStatus); if (!nResult) { ShowError(hDlg, nStatus, IDS_BOS_OPEN_FAILED); return FALSE; } nResult = bos_Salvage(g_hCell, hServer, S2A(pszPartitionName), S2A(pszVolumeName), nNumProcesses, S2A(szTempDir), 0, VOS_NORMAL, BOS_SALVAGE_DAMAGED_VOLUMES, BOS_SALVAGE_DONT_WRITE_INODES, BOS_SALVAGE_DONT_WRITE_ROOT_INODES, BOS_SALVAGE_DONT_FORCE_DIRECTORIES, BOS_SALVAGE_DONT_FORCE_BLOCK_READS, &nStatus); if (!nResult) ShowError(hDlg, nStatus, IDS_SALVAGE_ERROR); bos_ServerClose(hServer, &nStatus); g_CfgData.bReuseAdminInfo = nResult; return nResult; }
static void print_align_lat(uchar *seq1, uchar *seq2, result_p_t r) { int *S; edit_script_list_p_t head, aligns; if (r->sList == NULL) return; aligns = r->sList; while (aligns != NULL) { head = aligns; aligns = aligns->next_script; S = (int *) xmalloc((2 * head->len2 + 1 + 1) * sizeof(int)); S++; S2A(head->script, S, 0); Free_script(head->script); IDISPLAY(seq1 + head->offset1 - 1 - 1, seq2 + head->offset2 - 1 - 1, head->len1, head->len2, S, head->offset1, head->offset2, &r->eCol, r->direction); free(S - 1); free(head); } r->sList = NULL; }