From: Eric Bollengier Date: Wed, 6 Sep 2023 10:04:32 +0000 (+0200) Subject: BEE Backport dird files X-Git-Tag: Beta-15.0.0~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e37b81ad89e20e7cc3494427a84edc657e3cd188;p=thirdparty%2Fbacula.git BEE Backport dird files --- diff --git a/bacula/src/dird/bsr.h b/bacula/src/dird/bsr.h index da103e38b..942d6d02f 100644 --- a/bacula/src/dird/bsr.h +++ b/bacula/src/dird/bsr.h @@ -17,12 +17,14 @@ 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 diff --git a/bacula/src/dird/dird.h b/bacula/src/dird/dird.h index c4cc7deb2..40c06d439 100644 --- a/bacula/src/dird/dird.h +++ b/bacula/src/dird/dird.h @@ -20,6 +20,7 @@ * Includes specific to the Director * * Kern Sibbald, December MM + * */ #include "lib/ini.h" diff --git a/bacula/src/dird/dird_conf.h b/bacula/src/dird/dird_conf.h index 59a9d6638..a816188f7 100644 --- a/bacula/src/dird/dird_conf.h +++ b/bacula/src/dird/dird_conf.h @@ -261,7 +261,7 @@ inline char *CAT::name() const { return hdr.name; } 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 */ @@ -325,7 +325,7 @@ inline char *CLIENT::name() const { return hdr.name; } 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 */ @@ -430,7 +430,7 @@ inline void USTORE::set_source(const char *where) 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 */ }; @@ -633,7 +633,7 @@ inline char *FILESET::name() const { return hdr.name; } 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 */ }; diff --git a/bacula/src/dird/recycle.c b/bacula/src/dird/recycle.c index a4ae89666..db36c14e5 100644 --- a/bacula/src/dird/recycle.c +++ b/bacula/src/dird/recycle.c @@ -17,10 +17,12 @@ Bacula(R) is a registered trademark of Kern Sibbald. */ /* + * * Bacula Director -- Automatic Recycling of Volumes * Recycles Volumes that have been purged * * Kern Sibbald, May MMII + * */ diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index 866faf5bf..ae814d601 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -2549,7 +2549,6 @@ static void do_storage_cmd(UAContext *ua, const char *command) ua->send_msg("%s", sd->msg); } sd->signal(BNET_TERMINATE); - bail_out: free_bsock(ua->jcr->store_bsock); } diff --git a/bacula/src/dird/ua_query.c b/bacula/src/dird/ua_query.c index 6d891dcca..ddb30169b 100644 --- a/bacula/src/dird/ua_query.c +++ b/bacula/src/dird/ua_query.c @@ -17,11 +17,9 @@ Bacula(R) is a registered trademark of Kern Sibbald. */ /* - * * Bacula Director -- User Agent Database Query Commands * * Kern Sibbald, December MMI - * */ #include "bacula.h" diff --git a/bacula/src/dird/ua_status.c b/bacula/src/dird/ua_status.c index 24a438f0d..5ccea0d63 100644 --- a/bacula/src/dird/ua_status.c +++ b/bacula/src/dird/ua_status.c @@ -1217,7 +1217,7 @@ static void list_scheduled_jobs(UAContext *ua) 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