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/mondostructures.h

    r2320 r2321  
    2525
    2626/** @def MAX_NOOF_MEDIA The maximum number of media that can be used in any one backup. */
    27 
    2827///* So we can override it in config.h: */
    2928//#ifndef MAX_NOOF_MEDIA
     
    327326 * that function may in turn pass the bkpinfo to other functions which use other fields.
    328327 *
    329  * To fill out the bkpinfo first call reset_bkpinfo() and pre_param_configuration(). Then set
     328 * To fill out the bkpinfo first call init_bkpinfo() and pre_param_configuration(). Then set
    330329 * the backup-specific parameters (see mondo/mondoarchive/mondo-cli.c-\>process_switches for
    331330 * an example). After that, you should call post_param_configuration() to set some final
     
    488487   * of space here.
    489488   */
    490     char tmpdir[MAX_STR_LEN / 4];
     489    char *tmpdir;
    491490
    492491  /**
     
    501500   */
    502501    t_bkptype backup_media_type;
    503 //  bool blank_dvd_first;
    504502
    505503  /**
     
    667665   */
    668666    bool expanded;
    669 };
    670 
    671 
    672 
    673 /**
    674  * A structure to wrap a FIFO device for writing to a tape/CD stream.
    675  * @bug Is this structure used (w/the move to a standalone @c buffer and all)?
    676  */
    677 struct s_wrapfifo {
    678         /**
    679      * The device we write to or read from (a FIFO).
    680      */
    681     char public_device[MAX_STR_LEN / 4];
    682 
    683         /**
    684      * The actual device that data from the FIFO should be buffered and written to.
    685      */
    686     char private_device[MAX_STR_LEN / 4];
    687 
    688         /**
    689      * A buffer for holding data read from the FIFO.
    690      */
    691     char internal_buffer_IN_fifo[MAX_STR_LEN / 4];
    692 
    693         /**
    694      * A buffer for holding data to be written to the FIFO.
    695      */
    696     char internal_buffer_OUT_fifo[MAX_STR_LEN / 4];
    697 
    698         /**
    699      * If TRUE, then we're writing directly to the tape streamer; if FALSE, we're writing to the FIFO.
    700      */
    701     bool writing_to_private_device;
    702667};
    703668
Note: See TracChangeset for help on using the changeset viewer.