Changeset 1326 in MondoRescue for branches/stable/mondo/src/common


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)

Location:
branches/stable/mondo/src/common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-archive.c

    r1302 r1326  
    8484extern char *g_getfacl;
    8585extern char *g_getfattr;
     86extern char *MONDO_LOGFILE;
    8687
    8788
     
    17891790            } else {
    17901791                log_to_screen("%s...OK", message_to_screen);
    1791                 if (!run_program_and_log_output
    1792                     ("tail -n10 /var/log/mondo-archive.log | grep -F ':-('",
    1793                      1)) {
     1792                sprintf(tmp, "tail -n10 %s | grep -F ':-('", MONDO_LOGFILE);
     1793                if (!run_program_and_log_output(tmp, 1)) {
    17941794                    log_to_screen
    17951795                        ("Despite nonfatal errors, growisofs confirms the write was successful.");
  • branches/stable/mondo/src/common/libmondo-filelist.c

    r1283 r1326  
    3535#define MAX_SKEL_DEPTH 3
    3636
     37
     38extern char *MONDO_LOGFILE;
    3739
    3840int mondo_makefilelist(char *logfile, char *tmpdir, char *scratchdir,
  • branches/stable/mondo/src/common/newt-specific.c

    r1293 r1326  
    3131#include "libmondo-fork-EXT.h"
    3232#include "newt-specific-EXT.h"
     33
     34extern char *MONDO_LOGFILE;
    3335
    3436/*@unused@*/
     
    344346    printf(_("The list's members can help you, if you attach that file to your e-mail.\n"));
    345347    printf(_("Log file: %s\n"), MONDO_LOGFILE);
    346 /*
    347     system
    348         ("gzip -9c /var/log/mondo-archive.log > /tmp/MA.log.gz 2> /dev/null");
    349     if (does_file_exist("/tmp/MA.log.gz")) {
    350         printf
    351             ("FYI, I have gzipped the log and saved it to /tmp/MA.log.gz\n");
    352         }
    353 */
    354348    printf(_("Mondo has aborted.\n"));
    355349    register_pid(0, "mondo");   // finish() does this too, FYI
Note: See TracChangeset for help on using the changeset viewer.