Ignore:
Timestamp:
Nov 6, 2007, 1:37:38 AM (16 years ago)
Author:
Bruno Cornec
Message:

Continue on configuration file items (compression)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/mondostructures.h

    r1669 r1769  
    168168    udev                        ///< Back up to another unsupported device; just send a stream of bytes.
    169169} t_bkptype;
     170
     171/*
     172 * Type of compression algorithm we're using
     173 */
     174typedef enum {
     175    none = 0,                   //< No compression
     176    gzip,                       //< Compression with gzip
     177    bzip2,                      //< Compression with bzip2
     178    lzo,                        //< Compression with lzo
     179    lzma                        //< Compression with lzma
     180} t_mr_comp;
    170181
    171182/**
     
    344355  /**
    345356   * The compression program to use. Currently supported
    346    * choices are lzop and bzip2; gzip may also work. This is ignored if
     357   * choices are lzop, bzip2, and gzip. This is ignored if
    347358   * compression_level is 0.
    348359   */
    349     char zip_exe[MAX_STR_LEN / 4];
     360    char *compression_tool;
    350361
    351362  /**
     
    353364   * bz2, gzip uses gz, etc. Do not include the dot.
    354365   */
    355     char zip_suffix[MAX_STR_LEN / 4];
     366    char *compression_suffix;
     367
     368  /**
     369   * The compression level (1-9) to use. 0 disables compression.
     370   */
     371    int compression_level;
     372
     373  /**
     374   * The type of compression
     375   */
     376    t_mr_comp compression_type;
    356377
    357378  /**
     
    369390   */
    370391    char image_devs[MAX_STR_LEN / 4];
    371 
    372   /**
    373    * The compression level (1-9) to use. 0 disables compression.
    374    */
    375     int compression_level;
    376 
    377   /**
    378    * If TRUE, then use @c lzop to compress data.
    379    * This is used mainly in estimates. The backup/restore may or may
    380    * not work if you do not set this. You should also set @p zip_exe
    381    * and @p zip_suffix.
    382    */
    383     bool use_lzo;
    384 
    385   /**
    386    * If TRUE, then use @c gzip to compress data.
    387    * This is used mainly in estimates. The backup/restore may or may
    388    * not work if you do not set this. You should also set @p zip_exe
    389    * and @p zip_suffix.
    390    */
    391     bool use_gzip;
    392392
    393393  /**
Note: See TracChangeset for help on using the changeset viewer.