Ignore:
Timestamp:
Sep 24, 2007, 3:04:43 AM (12 years ago)
Author:
Bruno Cornec
Message:

Render bkpinfo global (potential issue on thread, but should not be a problem as that structure is indeed static during archive)
Should solve the tmpdir issue from previous rev.
May still not compile

File:
1 edited

Legend:

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

    r1505 r1645  
    103103extern int g_currentY;
    104104extern char *g_mondo_home;
     105
     106/* Reference to global bkpinfo */
     107extern struct s_bkpinfo *bkpinfo;
    105108
    106109/**
     
    871874 * @return The total size of all biggiefiles in KB.
    872875 */
    873 long size_of_all_biggiefiles_K(struct s_bkpinfo *bkpinfo)
     876long size_of_all_biggiefiles_K()
    874877{
    875878    /*@ buffers ***************************************************** */
     
    11371140 * - @c bkpinfo->tmpdir
    11381141 */
    1139 void copy_mondo_and_mindi_stuff_to_scratchdir(struct s_bkpinfo *bkpinfo)
     1142void copy_mondo_and_mindi_stuff_to_scratchdir()
    11401143{
    11411144    /*@ Char buffers ** */
     
    12171220 * - @c tmpdir
    12181221 */
    1219 void store_nfs_config(struct s_bkpinfo *bkpinfo)
     1222void store_nfs_config()
    12201223{
    12211224
     
    13381341 */
    13391342void
    1340 estimate_noof_media_required(struct s_bkpinfo *bkpinfo, long noof_sets)
     1343estimate_noof_media_required(long noof_sets)
    13411344{
    13421345    /*@ buffers *************** */
     
    13541357    scratchLL =
    13551358        (long long) (noof_sets) * (long long) (bkpinfo->optimal_set_size)
    1356         + (long long) (size_of_all_biggiefiles_K(bkpinfo));
     1359        + (long long) (size_of_all_biggiefiles_K());
    13571360    scratchLL = (scratchLL / 1024) / bkpinfo->media_size[1];
    13581361    scratchLL++;
Note: See TracChangeset for help on using the changeset viewer.