Ignore:
Timestamp:
Aug 18, 2009, 2:37:55 PM (11 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-stream.c

    r2316 r2321  
    513513 * assumed to be a fileset, otherwise if it contains "slice" it's a slice,
    514514 * otherwise we generate a fatal_error().
    515  * @param td The current @c bkpinfo->tempdir (file will be placed in <tt>td</tt>/tmpfs/backcatalog/).
    516515 * @param latest_fname The file to place in the collection.
    517516 * @return 0, always.
     
    519518 * @bug The detection won't work for uncompressed afioballs (they end in ".afio", no dot afterwards). // Not true. They end in '.' -Hugo
    520519 */
    521 int maintain_collection_of_recent_archives(char *td, char *latest_fname)
     520int maintain_collection_of_recent_archives(char *latest_fname)
    522521{
    523522    long long final_alleged_writeK, final_projected_certain_writeK,
     
    543542    } else {
    544543        log_it("fname = %s", latest_fname);
    545         fatal_error
    546             ("Unknown type. Internal error in maintain_collection_of_recent_archives()");
    547     }
    548     mr_asprintf(&tmpdir, "%s/tmpfs/backcatalog", td);
     544        fatal_error("Unknown type. Internal error in maintain_collection_of_recent_archives()");
     545    }
     546    mr_asprintf(&tmpdir, "%s/tmpfs/backcatalog", bkpinfo->tmpdir);
    549547    mkdir(tmpdir, 0x700);
    550548    mr_asprintf(&command, "cp -f %s %s", latest_fname, tmpdir);
Note: See TracChangeset for help on using the changeset viewer.