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/mondorestore/mondo-rstr-tools.c

    r2316 r2321  
    18411841void setup_MR_global_filenames()
    18421842{
    1843     char *temppath;
    1844 
    18451843    assert(bkpinfo != NULL);
    18461844
     
    18541852    malloc_string(g_isodir_device);
    18551853
    1856     temppath = bkpinfo->tmpdir;
    1857 
    1858     sprintf(g_biggielist_txt, "%s/%s", temppath, BIGGIELIST_TXT_STUB);
    1859     sprintf(g_filelist_full, "%s/%s", temppath, FILELIST_FULL_STUB);
    1860     sprintf(g_filelist_imagedevs, "%s/tmp/filelist.imagedevs", temppath);
    1861     sprintf(g_imagedevs_restthese, "%s/tmp/imagedevs.restore-these", temppath);
     1854    sprintf(g_biggielist_txt, "%s/%s", bkpinfo->tmpdir, BIGGIELIST_TXT_STUB);
     1855    sprintf(g_filelist_full, "%s/%s", bkpinfo->tmpdir, FILELIST_FULL_STUB);
     1856    sprintf(g_filelist_imagedevs, "%s/tmp/filelist.imagedevs", bkpinfo->tmpdir);
     1857    sprintf(g_imagedevs_restthese, "%s/tmp/imagedevs.restore-these", bkpinfo->tmpdir);
    18621858    if (bkpinfo->disaster_recovery) {
    18631859        sprintf(g_mondo_cfg_file, "/%s", MONDO_CFG_FILE_STUB);
    18641860        sprintf(g_mountlist_fname, "/%s", MOUNTLIST_FNAME_STUB);
    18651861    } else {
    1866         sprintf(g_mondo_cfg_file, "%s/%s", temppath, MONDO_CFG_FILE_STUB);
    1867         sprintf(g_mountlist_fname, "%s/%s", temppath, MOUNTLIST_FNAME_STUB);
     1862        sprintf(g_mondo_cfg_file, "%s/%s", bkpinfo->tmpdir, MONDO_CFG_FILE_STUB);
     1863        sprintf(g_mountlist_fname, "%s/%s", bkpinfo->tmpdir, MOUNTLIST_FNAME_STUB);
    18681864    }
    18691865}
Note: See TracChangeset for help on using the changeset viewer.