Bacula(R) is a registered trademark of Kern Sibbald.
*/
/*
+ *
* Bootstrap Record header file
*
* BSR (bootstrap record) handling routines split from
* ua_restore.c July MMIII
*
* Kern Sibbald, July MMII
+ *
*/
#ifndef BSR_H
class CLIENT_GLOBALS {
public:
dlink link; /* double link */
- const char *name; /* resource name */
+ char *name; /* resource name */
int32_t NumConcurrentJobs; /* number of concurrent jobs running */
char *SetIPaddress; /* address from SetIP command */
int enabled; /* -1: not set, 0 disabled, 1 enabled */
class STORE_GLOBALS {
public:
dlink link; /* double link */
- const char *name; /* resource name */
+ char *name; /* resource name */
int32_t NumConcurrentJobs; /* number of concurrent jobs running */
int32_t NumConcurrentReadJobs; /* number of concurrent read jobs running */
int enabled; /* -1: not set, 0: disabled, 1: enabled */
class JOB_GLOBALS {
public:
dlink link; /* double link */
- const char *name; /* resource name */
+ char *name; /* resource name */
int32_t NumConcurrentJobs; /* number of concurrent jobs running */
int enabled; /* -1: disabled, 0: disabled, 1: Enabled */
};
class SCHED_GLOBALS {
public:
dlink link; /* double link */
- const char *name; /* resource name */
+ char *name; /* resource name */
int enabled; /* -1: not set, 0: disabled, 1: Enabled */
};
if (i >= 0 && is_a_number(ua->argv[i])) {
limit=atoi(ua->argv[i]);
if (limit == 0) {
- limit = -1; // disable limit
+ limit = -1; // disable limit, 0 means nothing in this context
}
} else if (ua->api) {
limit = -1; // no limit with the api mode