Ignore:
Timestamp:
Aug 18, 2009, 2:37:55 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3332@localhost: bruno | 2009-08-07 23:59:34 +0200

  • bkpinfo->tmpchdir is now dynamically allocated
  • reorganize how tmpdir and scratchdir are initialized and the startup of the main sections
  • change of interface for maintain_collection_of_recent_archives, mondo_makefilelist, chop_filelist
  • sensibly_set_tmpdir_and_scratchdir => sensibly_set_scratchdir
  • reset_bkpinfo => init_bkpinfo
  • add function mr_free_bkpinfo
  • Fix a bug in mr_strtok
  • mondoarchive seems to globally work. Newt stuff needs more testing
File:
1 edited

Legend:

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

    r2320 r2321  
    436436    mr_free(tmp);
    437437
    438     mr_asprintf(&tmp, "cp -f %s/archives/*list*.gz %s", bkpinfo->scratchdir,
    439             bkpinfo->tmpdir);
     438    mr_asprintf(&tmp, "cp -f %s/archives/*list*.gz %s", bkpinfo->scratchdir, bkpinfo->tmpdir);
    440439    if (run_program_and_log_output(tmp, 2)) {
    441440        mr_free(tmp);
     
    14311430                    register_in_tape_catalog(fileset, storing_set_no, -1,
    14321431                                         storing_afioball_fname);
    1433                     maintain_collection_of_recent_archives(bkpinfo->tmpdir,
    1434                                                        storing_afioball_fname);
     1432                    maintain_collection_of_recent_archives(storing_afioball_fname);
    14351433                    log_it("Writing EXAT files");
    14361434                    res +=
     
    22042202        if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {
    22052203            register_in_tape_catalog(fileset, curr_set_no, -1, curr_afioball_fname);
    2206             maintain_collection_of_recent_archives(bkpinfo->tmpdir, curr_afioball_fname);
     2204            maintain_collection_of_recent_archives(curr_afioball_fname);
    22072205            log_it("Writing EXAT files");
    22082206            res +=
     
    31073105            register_in_tape_catalog(biggieslice, biggie_file_number,
    31083106                                     slice_num, file_to_archive);
    3109             maintain_collection_of_recent_archives(bkpinfo->tmpdir,
    3110                                                    file_to_archive);
     3107            maintain_collection_of_recent_archives(file_to_archive);
    31113108            res = move_files_to_stream(file_to_archive, NULL);
    31123109        } else {
Note: See TracChangeset for help on using the changeset viewer.