Ignore:
Timestamp:
Apr 17, 2007, 12:08:14 AM (12 years ago)
Author:
bruno
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/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.");
Note: See TracChangeset for help on using the changeset viewer.