Changeset 2178 in MondoRescue
- Timestamp:
- Apr 25, 2009, 2:42:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-fork.c
r1999 r2178 3 3 4 4 - subroutines for handling forking/pthreads/etc. 5 6 7 01/20/20068 - replaced partimagehack with ntfsclone9 10 06/20/200411 - create fifo /var/log/partimagehack-debug.log and empty it12 to keep ramdisk from filling up13 14 04/13/200415 - >= should be <= g_loglevel16 17 11/15/200318 - changed a few []s to char*s19 20 10/1221 - rewrote partimagehack handling (multiple fifos, chunks, etc.)22 23 10/1124 - partimagehack now has debug level of N (set in my-stuff.h)25 26 10/0827 - call to partimagehack when restoring will now log errors to /var/log/....log28 29 10/0630 - cleaned up logging a bit31 32 09/3033 - line 735 - missing char* cmd in sprintf()34 35 09/2836 - added run_external_binary_with_percentage_indicator()37 - rewritten eval_call_to_make_ISO()38 39 09/1840 - call mkstemp instead of mktemp41 42 09/1343 - major NTFS hackage44 45 09/1246 - paranoid_system("rm -f /tmp/ *PARTIMAGE*") before calling partimagehack47 48 09/1149 - forward-ported unbroken feed_*_partimage() subroutines50 from early August 200351 52 09/0853 - detect & use partimagehack if it exists54 55 09/0556 - finally finished partimagehack hack :)57 58 07/0459 - added subroutines to wrap around partimagehack60 61 04/2762 - don't echo (...res=%d...) at end of log_it()63 unnecessarily64 - replace newtFinished() and newtInit() with65 newtSuspend() and newtResume()66 67 04/2468 - added some assert()'s and log_OS_error()'s69 70 04/0971 - cleaned up run_program_and_log_output()72 73 04/0774 - cleaned up code a bit75 - let run_program_and_log_output() accept -1 (only log if _no error_)76 77 01/02/200378 - in eval_call_to_make_ISO(), append output to MONDO_LOGFILE79 instead of a temporary stderr text file80 81 12/1082 - patch by Heiko Schlittermann to handle % chars in issue.net83 84 11/1885 - if mkisofs in eval_call_to_make_ISO() returns an error then return it,86 whether ISO was created or not87 88 10/3089 - if mkisofs in eval_call_to_make_ISO() returns an error then find out if90 the output (ISO) file has been created; if it has then return 0 anyway91 92 08/01 - 09/3093 - run_program_and_log_output() now takes boolean operator to specify94 whether it will log its activities in the event of _success_95 - system() now includes 2>/dev/null96 - enlarged some tmp[]'s97 - added run_program_and_log_to_screen() and run_program_and_log_output()98 99 07/24100 - created101 5 */ 102 6 … … 554 458 FILE *fout; 555 459 FILE *ftmp; 460 int tmpcap = 512; 556 461 557 462 log_msg(5, "Opening."); 558 malloc_string(tmp); 463 if (!(tmp = malloc(tmpcap))) { 464 fatal_error("Failed to malloc() tmp"); 465 } 559 466 tmp[0] = '\0'; 560 467 bufcap = 256L * 1024L; … … 656 563 sprintf(tmp, "I am here - %lld", (long long)ftello(fin)); 657 564 // log_msg(0, tmp); 658 fread(tmp, 1, 512, fin);565 fread(tmp, 1, tmpcap, fin); 659 566 log_msg(0, "tmp = '%s'", tmp); 660 fwrite(tmp, 1, 512, ftmp);567 fwrite(tmp, 1, tmpcap, ftmp); 661 568 fclose(ftmp); 662 569 fatal_error("Missing terminating block");
Note:
See TracChangeset
for help on using the changeset viewer.