Changeset 783 in MondoRescue for trunk/mondo/mondo/common/mondostructures.h


Ignore:
Timestamp:
Aug 31, 2006, 5:09:20 PM (18 years ago)
Author:
Bruno Cornec
Message:
  • Massive rewrite continues for memory management.
  • main structure should now have all parameters allocated dynamically
  • new lib libmr.a + dir + build process reviewed to support it.
  • new include subdir to host external definitions of the new lib
  • code now compiles. Still one remaining link issues for mondorestore. This should allow for some tests soon.

(goal is to separate completely reviewed code and functions and provide clean interfaces)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/mondostructures.h

    r561 r783  
    8888   * The label for this RAID variable.
    8989   */
    90     char label[64];
     90    char *label;
    9191
    9292  /**
    9393   * The value for this RAID variable.
    9494   */
    95     char value[64];
     95    char *value;
    9696};
    9797
     
    214214       * The name of the RAID device (e.g. /dev/md0).
    215215       */
    216     char raid_device[64];
     216    char *raid_device;
    217217
    218218      /**
     
    303303 */
    304304struct s_bkpinfo {
     305
     306  /**
     307   * Pointer to the configuration structure
     308   */
     309    struct s_mr_conf *mr_conf;
     310
    305311  /**
    306312   * The device we're backing up to.
     
    346352   * compression_level is 0.
    347353   */
    348     char zip_exe[MAX_STR_LEN / 4];
     354    char *zip_exe;
    349355
    350356  /**
     
    352358   * bz2, gzip uses gz, etc. Do not include the dot.
    353359   */
    354     char zip_suffix[MAX_STR_LEN / 4];
     360    char *zip_suffix;
    355361
    356362  /**
     
    383389
    384390  /**
    385    * A filename containing a list of extensions, one per line, to not
    386    * compress. If this is set to "", afio will still exclude a set of well-known
    387    * compressed files from compression, but biggiefiles that are compressed
    388    * will be recompressed again.
    389    */
    390     char do_not_compress_these[MAX_STR_LEN / 2];
    391 
    392   /**
    393391   * If TRUE, then we should verify a backup.
    394392   */
     
    465463
    466464  /**
     465   * The string corresponding to the media type
     466   */
     467    char *backup_media_string;
     468
     469  /**
    467470   * Whether we should use a premade filelist or generate our own.
    468471   * If TRUE, then we generate our own filelist from the directories in @p include_paths.
     
    476479   * If you do nothing, "/" will be used.
    477480   */
    478     char include_paths[MAX_STR_LEN*4];
     481    char *include_paths;
    479482
    480483  /**
     
    483486   * the scratchdir, and the tempdir are automatically excluded.
    484487   */
    485     char exclude_paths[MAX_STR_LEN*4];
     488    char *exclude_paths;
    486489
    487490  /**
     
    490493   * without overwriting the old ones. Ignored during a backup.
    491494   */
    492     char restore_path[MAX_STR_LEN];
     495    char *restore_path;
    493496
    494497  /**
     
    500503   * A command to call to make an ISO image.
    501504   */
    502     char call_make_iso[MAX_STR_LEN];
     505    char *call_make_iso;
    503506
    504507  /**
    505508   * A command to call to burn the ISO image.
    506    */
    507     char call_burn_iso[MAX_STR_LEN];
     509   * BERLIOS: Useful ???
     510   */
     511    char *call_burn_iso;
    508512
    509513  /**
     
    614618    bool expanded;
    615619};
    616 
    617 
    618 
    619 /**
    620  * A structure to wrap a FIFO device for writing to a tape/CD stream.
    621  * @bug Is this structure used (w/the move to a standalone @c buffer and all)?
    622  */
    623 struct s_wrapfifo {
    624         /**
    625      * The device we write to or read from (a FIFO).
    626      */
    627     char public_device[MAX_STR_LEN / 4];
    628 
    629         /**
    630      * The actual device that data from the FIFO should be buffered and written to.
    631      */
    632     char private_device[MAX_STR_LEN / 4];
    633 
    634         /**
    635      * A buffer for holding data read from the FIFO.
    636      */
    637     char internal_buffer_IN_fifo[MAX_STR_LEN / 4];
    638 
    639         /**
    640      * A buffer for holding data to be written to the FIFO.
    641      */
    642     char internal_buffer_OUT_fifo[MAX_STR_LEN / 4];
    643 
    644         /**
    645      * If TRUE, then we're writing directly to the tape streamer; if FALSE, we're writing to the FIFO.
    646      */
    647     bool writing_to_private_device;
    648 };
    649 
    650 
    651620
    652621/**
     
    801770};
    802771
    803 struct s_mrconf {
    804     int ia64_boot_size;
    805     char *iso_creation_cmd;
    806 };
     772struct s_mr_conf {
     773    int mindi_ia64_boot_size;
     774    char *mondo_iso_creation_cmd;
     775};
Note: See TracChangeset for help on using the changeset viewer.