Changeset 2376 in MondoRescue for branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
- Timestamp:
- Sep 9, 2009, 12:37:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/mondorestore/mondo-prep.c
r2357 r2376 118 118 } 119 119 } 120 sy stem("sync");121 sy stem("sync");122 sy stem("sync");120 sync(); 121 sync(); 122 sync(); 123 123 popup_and_OK 124 124 ("I must now reboot. Please leave the boot media in the drive and repeat your actions - e.g. type 'nuke' - and it should work fine."); … … 277 277 if (res && strstr(command, "create") && vacuum_pack) { 278 278 sleep(2); 279 sy stem("sync");280 sy stem("sync");281 sy stem("sync");279 sync(); 280 sync(); 281 sync(); 282 282 } 283 283 if ((p = strstr(incoming, "vgcreate"))) { … … 408 408 } 409 409 paranoid_free(command); 410 sy stem("sync");411 sy stem("sync");412 sy stem("sync");410 sync(); 411 sync(); 412 sync(); 413 413 sleep(1); 414 414 log_it("ENDING"); … … 764 764 log_to_screen("Stopping %s", device); 765 765 stop_raid_device(device); 766 sy stem("sync");766 sync(); 767 767 sleep(1); 768 768 … … 776 776 res = run_program_and_log_output(program, 1); 777 777 log_msg(1, "%s returned %d", program, res); 778 sy stem("sync");778 sync(); 779 779 sleep(3); 780 780 start_raid_device(device); … … 784 784 mr_free(program); 785 785 } 786 sy stem("sync");786 sync(); 787 787 sleep(2); 788 788 #endif 789 sy stem("sync");789 sync(); 790 790 sleep(1); 791 791 newtResume(); … … 849 849 mr_free(program); 850 850 retval += res; 851 sy stem("sync");851 sync(); 852 852 sleep(1); 853 853 return (retval); … … 901 901 log_msg(1, "Stopping all RAID devices"); 902 902 stop_all_raid_devices(mountlist); 903 sy stem("sync");904 sy stem("sync");905 sy stem("sync");903 sync(); 904 sync(); 905 sync(); 906 906 sleep(2); 907 907 log_msg(1, "Prepare soft-RAIDs"); // prep and format too … … 925 925 } 926 926 } 927 sy stem("sync");928 sy stem("sync");929 sy stem("sync");927 sync(); 928 sync(); 929 sync(); 930 930 sleep(2); 931 931 // This last step is probably necessary … … 1028 1028 ("Please choose 'yes' to reboot and try again; or 'no' to ignore this warning and continue.")) 1029 1029 { 1030 sy stem("sync");1031 sy stem("sync");1032 sy stem("sync");1030 sync(); 1031 sync(); 1032 sync(); 1033 1033 system("reboot"); 1034 1034 } … … 1521 1521 } 1522 1522 } 1523 sy stem("sync");1523 sync(); 1524 1524 #else 1525 1525 log_it("New, kernel-friendly partition remover"); … … 1584 1584 // close fdisk 1585 1585 fput_string_one_char_at_a_time(pout_to_fdisk, "w\n"); 1586 sy stem("sync");1586 sync(); 1587 1587 paranoid_pclose(pout_to_fdisk); 1588 1588 log_msg(0, … … 2215 2215 log_msg(1, "Warning - unable to stop some RAID devices"); 2216 2216 } 2217 sy stem("sync");2218 sy stem("sync");2219 sy stem("sync");2217 sync(); 2218 sync(); 2219 sync(); 2220 2220 sleep(1); 2221 2221 return (retval);
Note:
See TracChangeset
for help on using the changeset viewer.