aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2020-01-29 14:27:03 +0100
committerJulien Dessaux2020-01-29 14:27:03 +0100
commite07ce016c494317d980d0575c2e32c694e807397 (patch)
tree1fb67673ff1696be5e83081af1d18c86dd12dca4
parentAdded gitignore (diff)
downloadbareos-zabbix-check-e07ce016c494317d980d0575c2e32c694e807397.tar.gz
bareos-zabbix-check-e07ce016c494317d980d0575c2e32c694e807397.tar.bz2
bareos-zabbix-check-e07ce016c494317d980d0575c2e32c694e807397.zip
Document where C structures for state file header and job entry come from
Diffstat (limited to '')
-rw-r--r--README.md3
-rw-r--r--state.go2
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6d4c478..340244c 100644
--- a/README.md
+++ b/README.md
@@ -84,4 +84,5 @@ Because of the way we record jobs in a spool file in order to track missing jobs
- delete the bareos file daemon status file (/var/lib/bareos/bareos-fd.9102.state by default)
- start the bareos file daemon again
- run any job in order to have the file daemon recreate a valid status file
- - delete the line referencing this job in the spool file (/var/lib/bareos/bareos-zabbix-check.spool by default) \ No newline at end of file
+ - delete the line referencing this job in the spool file (/var/lib/bareos/bareos-zabbix-check.spool by default)
+
diff --git a/state.go b/state.go
index 16d854d..9c5ac49 100644
--- a/state.go
+++ b/state.go
@@ -11,6 +11,7 @@ import (
)
// stateFileHeader : A structure to hold the header of the state file. It is statically aligned for amd64 architecture
+// This comes from bareos repository file core/src/lib/bsys.cc:525 and core/src/lib/bsys.cc:652
type stateFileHeader struct {
ID [14]byte
_ int16
@@ -26,6 +27,7 @@ func (sfh stateFileHeader) String() string {
}
// jobEntry : A structure to hold a job result from the state file
+// This comes from bareos repository file core/src/lib/recent_job_results_list.h:29 and file core/src/lib/recent_job_results_list.cc:44
type jobEntry struct {
Pad [16]byte
Errors int32