This file is indexed.

/usr/lib/bareos/plugins/bareos_dir_consts.py is in bareos-director-python-plugin 14.2.1+20141017gitc6c5b56-3+deb8u3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
bJobMessageType = dict(
    M_ABORT = 1,
    M_DEBUG = 2,
    M_FATAL = 3,
    M_ERROR = 4,
    M_WARNING = 5,
    M_INFO = 6,
    M_SAVED = 7,
    M_NOTSAVED = 8,
    M_SKIPPED = 9,
    M_MOUNT = 10,
    M_ERROR_TERM = 11,
    M_TERM = 12,
    M_RESTORED = 13,
    M_SECURITY = 14,
    M_ALERT = 15,
    M_VOLMGMT = 16
)

brDirVariable = dict(
    bDirVarJob = 1,
    bDirVarLevel = 2,
    bDirVarType = 3,
    bDirVarJobId = 4,
    bDirVarClient = 5,
    bDirVarNumVols = 6,
    bDirVarPool = 7,
    bDirVarStorage = 8,
    bDirVarWriteStorage = 9,
    bDirVarReadStorage = 10,
    bDirVarCatalog = 11,
    bDirVarMediaType = 12,
    bDirVarJobName = 13,
    bDirVarJobStatus = 14,
    bDirVarPriority = 15,
    bDirVarVolumeName = 16,
    bDirVarCatalogRes = 17,
    bDirVarJobErrors = 18,
    bDirVarJobFiles = 19,
    bDirVarSDJobFiles = 20,
    bDirVarSDErrors = 21,
    bDirVarFDJobStatus = 22,
    bDirVarSDJobStatus = 23,
    bDirVarPluginDir = 24,
    bDirVarLastRate = 25,
    bDirVarJobBytes = 26,
    bDirVarReadBytes = 27
)

bwDirVariable = dict(
    bwDirVarJobReport = 1,
    bwDirVarVolumeName = 2,
    bwDirVarPriority = 3,
    bwDirVarJobLevel = 4
)

bRCs = dict(
    bRC_OK = 0,
    bRC_Stop = 1,
    bRC_Error = 2,
    bRC_More = 3,
    bRC_Term = 4,
    bRC_Seen = 5,
    bRC_Core = 6,
    bRC_Skip = 7,
    bRC_Cancel = 8
)

bDirEventType = dict(
    bDirEventJobStart = 1,
    bDirEventJobEnd = 2,
    bDirEventJobInit = 3,
    bDirEventJobRun = 4,
    bDirEventVolumePurged = 5,
    bDirEventNewVolume = 6,
    bDirEventNeedVolume = 7,
    bDirEventVolumeFull = 8,
    bDirEventRecyle = 9,
    bDirEventGetScratch = 10
)