Changeset 2376 in MondoRescue for branches/2.2.10/mondo/src/common
- Timestamp:
- Sep 9, 2009, 12:37:59 PM (16 years ago)
- Location:
- branches/2.2.10/mondo/src/common
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-archive.c
r2357 r2376 1722 1722 ("Failed to write to disk. I shall blank it and then try again."); 1723 1723 sleep(5); 1724 (void)system("sync");1724 sync(); 1725 1725 pause_for_N_seconds(5, "Letting DVD drive settle"); 1726 1726 -
branches/2.2.10/mondo/src/common/libmondo-devices.c
r2375 r2376 1350 1350 1351 1351 while (what_number_cd_is_this() != cd_number_i_want) { 1352 paranoid_system("sync");1352 sync(); 1353 1353 if (is_this_device_mounted(MNT_CDROM)) { 1354 1354 res = … … 1372 1372 inject_device(bkpinfo->media_device); 1373 1373 } 1374 paranoid_system("sync");1374 sync(); 1375 1375 } 1376 1376 mr_free(request); -
branches/2.2.10/mondo/src/common/libmondo-fifo.c
r2332 r2376 85 85 wise_upper_limit = (am_I_in_disaster_recovery_mode()? 8 : 32); 86 86 wise_lower_limit = 1; // wise_upper_limit/2 + 1; 87 paranoid_system("sync");87 sync(); 88 88 for (bufsize = wise_upper_limit, res = -1; 89 89 res != 0 && bufsize >= wise_lower_limit; bufsize--) { … … 162 162 return; 163 163 } 164 paranoid_system("sync");164 sync(); 165 165 mr_asprintf(command, "ps %s | grep -F \"%s\" | grep -Fv grep | awk '{print $2;}' | grep -v PID | head -1", ps_options, g_sz_call_to_buffer); 166 166 log_msg(2, "kill_buffer() --- command = %s", command); -
branches/2.2.10/mondo/src/common/libmondo-stream.c
r2334 r2376 134 134 } 135 135 sleep(1); 136 paranoid_system("sync");136 sync(); 137 137 sleep(1); 138 138 paranoid_pclose(g_tape_stream); … … 173 173 174 174 sleep(1); 175 paranoid_system("sync");175 sync(); 176 176 sleep(1); 177 177 log_it("closeout_tape() -- entering"); … … 1467 1467 1468 1468 paranoid_pclose(g_tape_stream); 1469 sy stem("sync");1470 sy stem("sync");1471 sy stem("sync");1469 sync(); 1470 sync(); 1471 sync(); 1472 1472 log_it("New tape requested."); 1473 1473 insist_on_this_tape_number(g_current_media_number + 1); // will increment g_current_media, too -
branches/2.2.10/mondo/src/common/libmondo-verify.c
r2357 r2376 92 92 93 93 mr_asprintf(afio_found_changes, "%s.afio", ignorefiles_fname); 94 paranoid_system("sync");94 sync(); 95 95 96 96 log_msg(1, "Now scanning log file for 'afio: ' stuff"); … … 1177 1177 retval += verify_biggiefiles_from_stream(); 1178 1178 /* find the final blocks */ 1179 paranoid_system("sync");1179 sync(); 1180 1180 sleep(2); 1181 1181 closein_tape(); -
branches/2.2.10/mondo/src/common/newt-specific.c
r2357 r2376 99 99 long g_start_time = 0L; ///< The time (in seconds since the epoch) that the progress form was opened. 100 100 bool g_text_mode = TRUE; ///< If FALSE, use a newt interface; if TRUE, use an ugly (but more compatible) dumb terminal interface. 101 char g_xmondo_stdin[MAX_NEWT_COMMENT_LEN], ///< ... @bug Unneeded w/current XMondo.102 g_xmondo_stdout[MAX_NEWT_COMMENT_LEN]; ///< .... @bug Unneeded w/current XMondo.103 bool g_called_by_xmondo = FALSE; ///< @bug Unneeded w/current XMondo.104 101 char *g_selfmounted_isodir; ///< Holds the NFS mountpoint if mounted via mondoarchive. 105 102 106 103 /* @} - end of globalGroup */ 107 108 //int g_fd_in=-1, g_fd_out=-1;109 104 110 105 void popup_and_OK(char *); … … 130 125 if (g_text_mode) { 131 126 while (1) { 132 sy stem("sync");127 sync(); 133 128 printf("---promptdialogYN---1--- %s\n---promptdialogYN---Q--- [yes] [no] ---\n--> ", prompt); 134 129 mr_getline(tmp, stdin); … … 147 142 return (FALSE); 148 143 } else { 149 sy stem("sync");144 sync(); 150 145 printf("Please enter either YES or NO (or yes or no, or y or n, or...)\n"); 151 146 } … … 172 167 173 168 if (g_text_mode) { 174 sy stem("sync");169 sync(); 175 170 printf("---promptdialogOKC---1--- %s\n---promptdialogOKC---Q--- [OK] [Cancel] ---\n--> ", prompt); 176 171 mr_getline(tmp, stdin);
Note:
See TracChangeset
for help on using the changeset viewer.