#include "amanda.h"
#include "conffile.h"
+#include "fileheader.h"
#include "amfeatures.h"
typedef struct netif_s {
typedef struct disk_s {
int line; /* line number of last definition */
+ char *filename; /* the filename where it is read */
struct disk_s *prev, *next; /* doubly linked disk list */
am_host_t *host; /* host list */
char *name; /* label name for disk */
char *device; /* device name for disk, eg "sd0g" */
char *dtype_name; /* name of dump type */
+ dumptype_t *config; /* pointer to the dumptype config */
char *program; /* dump program, eg DUMP, STAR, GNUTAR */
char *srvcompprog; /* custom compression server filter */
char *clntcompprog; /* custom compression client filter */
int exclude_optional; /* exclude list are optional */
int include_optional; /* include list are optional */
int priority; /* priority of disk */
- off_t tape_splitsize; /* size of dumpfile chunks on tape */
- char *split_diskbuffer; /* place where we can buffer PORT-WRITE dumps other than RAM */
- off_t fallback_splitsize; /* size for in-RAM PORT-WRITE buffers */
+ int allow_split;
+ off_t splitsize;
+ off_t tape_splitsize; /* size of dumpfile chunks on tape */
+ char *split_diskbuffer; /* place where we can buffer PORT-WRITE dumps other than RAM */
+ off_t fallback_splitsize; /* size for in-RAM PORT-WRITE buffers */
int dumpcycle; /* days between fulls */
long frequency; /* XXX - not used */
char *auth; /* type of authentication (per disk) */
char *clnt_decrypt_opt; /* client-side decryption option parameter to use */
double comprate[2]; /* default compression rates */
/* flag options */
- int record; /* record dump in /etc/dumpdates ? */
+ int record; /* record dump in /var/lib/dumpdates ? */
int skip_incr; /* incs done externally ? */
int skip_full; /* fulls done externally ? */
int to_holdingdisk; /* use holding disk ? */
int todo;
char *application;
identlist_t pp_scriptlist;
+ host_limit_t *dump_limit;
void *up; /* generic user pointer */
} disk_t;
* value just as you would the return of config_init() */
cfgerr_level_t read_diskfile(const char *, disklist_t *);
+am_host_t *get_hostlist(void);
am_host_t *lookup_host(const char *hostname);
disk_t *lookup_disk(const char *hostname, const char *diskname);
GPtrArray *validate_optionstr(disk_t *dp);
char *xml_optionstr(disk_t *dp, int to_server);
char *xml_estimate(estimatelist_t estimatelist, am_feature_t *their_features);
-char *clean_dle_str_for_client(char *dle_str);
+char *clean_dle_str_for_client(char *dle_str, am_feature_t *their_features);
char *xml_application(disk_t *dp, application_t *application,
am_feature_t *their_features);
char *xml_scripts(identlist_t pp_scriptlist, am_feature_t *their_features);
+char *xml_dumptype_properties(disk_t *dp);
/* disable_skip_disk() set the db->todo flag to 0 for each dle with 'ignore'
* 'strategy skip'. It is useful for all programs that want to skip them,i
void disable_skip_disk(disklist_t *origqp);
char *match_disklist(disklist_t *origqp, int sargc, char **sargv);
+gboolean match_dumpfile(dumpfile_t *file, int sargc, char **sargv);
void free_disklist(disklist_t *dl);
netif_t *disklist_netifs(void);