Ignore:
Timestamp:
Apr 17, 2007, 12:08:14 AM (17 years ago)
Author:
Bruno Cornec
Message:
  • MONDO_LOGFILE is rather a char* exported by each main program (consolidation of those mecanisms in .h files with ps_*)
  • One include has been created for each binary containing only the specific declarations
  • Log files are now consistent: mondoarchive.log for mondoarchive (containing also mindi.log) and mondorestore.log for mondorestore (copied from /tmp (ram) to /var/log (disk) at the end of the restore)
  • Doc updated accordingly
  • LOGFILE in restore process is now passed in the environment and not duplicated a nymore
  • LogIt is not redifined either
  • LOGFILE should be put in environment by mondoarchive for mindi's usage but that's a step left for later.
  • label-partitions-as-necessary should now work correctly for LABEL and UUID (grep -w removed)
  • Remove useless script compare-me

(All coming from 2.2.2) (remains changes in my-stuff.h coming later on)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c

    r1293 r1326  
    1515#include "mondo-rstr-tools-EXT.h"
    1616
     17extern char *MONDO_LOGFILE;
     18
    1719//static char cvsid[] = "$Id$";
    1820
     
    9092    }
    9193    mr_asprintf(&command,
    92             "md5sum \"%s%s\" > /tmp/md5sum.txt 2> /tmp/errors.txt",
     94            "md5sum \"%s%s\" > /tmp/md5sum.txt 2> /tmp/errors",
    9395            MNT_RESTORING, bigfile_fname);
    9496    mr_msg(2, command);
    9597    if (system(command)) {
    9698        log_OS_error("Warning - command failed");
    97         paranoid_system("cat /tmp/errors >> /tmp/mondo-restore.log 2> /dev/null");
     99        mr_asprintf(&tmp, "cat /tmp/errors >> %s 2> /dev/null", MONDO_LOGFILE);
     100        paranoid_system(tmp);
     101        mr_free(tmp);
    98102        mr_free(command);
    99103        mr_free(bigfile_fname);
Note: See TracChangeset for help on using the changeset viewer.