2 * Resource codes -- they must be sequential for indexing
7 Copyright (C) 2000-2004 Kern Sibbald and John Walker
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of
12 the License, or (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
19 You should have received a copy of the GNU General Public
20 License along with this program; if not, write to the Free
21 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
32 R_LAST = R_MSGS /* keep this updated */
43 /* Definition of the contents of each Resource */
47 char *password; /* Director password */
48 char *address; /* Director IP address or zero */
49 int enable_ssl; /* Use SSL with this Director */
53 /* Storage daemon "global" definitions */
57 char *address; /* deprecated */
58 char *SDaddr; /* bind address */
59 int SDport; /* Where we listen for Directors */
60 int SDDport; /* "Data" port where we listen for File daemons */
61 char *working_directory; /* working directory for checkpoints */
63 char *subsys_directory;
64 int require_ssl; /* Require SSL on all connections */
65 uint32_t max_concurrent_jobs; /* maximum concurrent jobs to run */
66 MSGS *messages; /* Daemon message handler */
67 utime_t heartbeat_interval; /* Interval to send hb to FD */
69 typedef struct s_res_store STORES;
71 /* Device specific definitions */
75 char *media_type; /* User assigned media type */
76 char *device_name; /* Archive device name */
77 char *changer_name; /* Changer device name */
78 char *changer_command; /* Changer command -- external program */
79 char *spool_directory; /* Spool file directory */
80 uint32_t drive_index; /* Autochanger drive index */
81 uint32_t cap_bits; /* Capabilities of this device */
82 uint32_t max_changer_wait; /* Changer timeout */
83 uint32_t max_rewind_wait; /* maximum secs to wait for rewind */
84 uint32_t max_open_wait; /* maximum secs to wait for open */
85 uint32_t max_open_vols; /* maximum simultaneous open volumes */
86 uint32_t min_block_size; /* min block size */
87 uint32_t max_block_size; /* max block size */
88 uint32_t max_volume_jobs; /* max jobs to put on one volume */
89 uint32_t max_network_buffer_size; /* max network buf size */
90 utime_t vol_poll_interval; /* interval between polling volume during mount */
91 int64_t max_volume_files; /* max files to put on one volume */
92 int64_t max_volume_size; /* max bytes to put on one volume */
93 int64_t max_file_size; /* max file size in bytes */
94 int64_t volume_capacity; /* advisory capacity */
95 int64_t max_spool_size; /* Max spool size for all jobs */
96 int64_t max_job_spool_size; /* Max spool size for any single job */
97 DEVICE *dev; /* Pointer to phyical dev -- set at runtime */