Ignore:
Timestamp:
Sep 27, 2007, 12:21:18 PM (17 years ago)
Author:
Bruno Cornec
Message:
  • Fix bug #197 (based on an initial patch of Scott Cummings)
  • Fix a bug where df was using locale to print messages and wasn't filtered correctly
  • mkdtemp checked in configure
  • reset_bkpinfo called as early as possible by both main program.
  • It creates a tmpdir cleanly with mkdtemp in setup_tmpdir subfunction, which takes in account TMPIR and TMP env var. Remains to see what tmpfs does and tests
  • configure.in should also be filtered.
  • Remove g_bkpinfo_DONTUSETHIS
  • remove bkpinfo also from header files
  • Render bkpinfo global (potential issue on thread, but should not be a problem as that structure is indeed static during archive)
  • Apply patch from Andree Leidenfrost, modified a bit to use bkpinfo->tmpdir instead of /tmp or MINDI_CACHE when appropriate. Fix security issues in mondo. Thanks al ot Andree for catching all those issues.
  • /tmp => /var/log for mondorestore.log in mindi
  • Update linux terminfo to fix a color issue (Andree Leidenfrost)
  • Removes useless log file (Andree Leidenfrost)
  • replace vi with find_my_editor during restore (Andree Leidenfrost)
  • sync in bg in mindi (VMWare issue to look at)
  • mindi/mindi-busybox have a different version than mondo for pb
  • PB-SUF also added to spec file
  • Fix a bug for pb build (omission of PB-SUF declaration)

(merge -r1631:1662 $SVN_M/branches/2.2.5)

File:
1 edited

Legend:

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

    r1594 r1663  
    3030
    3131extern int g_currentY;
     32
     33/* Reference to global bkpinfo */
     34extern struct s_bkpinfo *bkpinfo;
    3235
    3336/**
     
    680683 * @return The total size of all biggiefiles in KB.
    681684 */
    682 long size_of_all_biggiefiles_K(struct s_bkpinfo *bkpinfo)
     685long size_of_all_biggiefiles_K()
    683686{
    684687    char *fname = NULL;
     
    940943 * - @c bkpinfo->tmpdir
    941944 */
    942 void copy_mondo_and_mindi_stuff_to_scratchdir(struct s_bkpinfo *bkpinfo)
     945void copy_mondo_and_mindi_stuff_to_scratchdir()
    943946{
    944947    /*@ Char buffers ** */
     
    10261029 * - @c tmpdir
    10271030 */
    1028 void store_nfs_config(struct s_bkpinfo *bkpinfo)
     1031void store_nfs_config()
    10291032{
    10301033
     
    11561159 */
    11571160void
    1158 estimate_noof_media_required(struct s_bkpinfo *bkpinfo, long noof_sets)
     1161estimate_noof_media_required(long noof_sets)
    11591162{
    11601163    /*@ buffers *************** */
     
    11721175    scratchLL =
    11731176        (long long) (noof_sets) * (long long) (bkpinfo->optimal_set_size)
    1174         + (long long) (size_of_all_biggiefiles_K(bkpinfo));
     1177        + (long long) (size_of_all_biggiefiles_K());
    11751178    scratchLL = (scratchLL / 1024) / bkpinfo->media_size;
    11761179    scratchLL++;
Note: See TracChangeset for help on using the changeset viewer.