View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000301 | bareos-core | director | public | 2014-05-27 17:02 | 2023-05-09 16:41 |
Reporter | alexbrueckel | Assigned To | bruno-at-bareos | ||
Priority | low | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
OS | Debian 7 | ||||
Product Version | 13.2.2 | ||||
Summary | 0000301: Inconsistency when configuring bandwith limitation | ||||
Description | Hi, while configuring different jobs for a client, some width bandwith limitation, i noticed that every configuration item could be placed in quotation marks except the desired max. bandwidth. It's a bit inconsistent this way so it would be great if this could be fixed. Thank you very much | ||||
Tags | No tags attached. | ||||
An example and the exact error would be handy. Its probably some missing parsing as all config code uses the same config parser. But without a clear example and the exact error its not something we can go on. |
|
Hi, here's the example that works: Job { Name = "myhost-backupjob" Client = "myhost.mydomain.tld" JobDefs = "default" FileSet = "myfileset" Maximum Bandwidth = 10Mb/s } Note that the bandwidth value has noch quotation marks. Thats an example that doesn't work: Job { [same as above] Maximum Bandwidth = "10Mb/s" } The error message i get in this case is: ERROR in parse_conf.c:764 Config error: expected a speed, got: 10Mb/s Hope that helps and thanks for your work. Alex |
|
It seems that the config engine only allows a quoted string. E.g. all numbers are now allowed to have a quotation. As the speed get parsed by the same function as a number it currently doesn't allow you to use quotes. You can indeed argue that its inconsistent but it seems to be envisioned by the original creator of the config engine. We might change this one day but for now I wouldn't hold my breath for it to occur any time soon. There are just more important things to do. |
|
I added some notes about this to the documentation. | |
documentation updated. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-05-27 17:02 | alexbrueckel | New Issue | |
2014-05-31 22:04 | mvwieringen | Note Added: 0000889 | |
2014-05-31 22:04 | mvwieringen | Status | new => feedback |
2014-06-04 17:37 | alexbrueckel | Note Added: 0000899 | |
2014-06-04 17:37 | alexbrueckel | Status | feedback => new |
2014-06-06 15:39 | mvwieringen | Note Added: 0000900 | |
2014-06-06 15:39 | mvwieringen | Assigned To | => mvwieringen |
2014-06-06 15:39 | mvwieringen | Status | new => acknowledged |
2014-06-06 15:39 | mvwieringen | Assigned To | mvwieringen => |
2014-12-01 11:43 | joergs | Assigned To | => joergs |
2014-12-01 11:43 | joergs | Status | acknowledged => assigned |
2014-12-01 16:13 | joergs | Note Added: 0001086 | |
2014-12-01 16:13 | joergs | Assigned To | joergs => |
2015-01-26 16:12 |
|
Status | assigned => confirmed |
2023-05-09 16:41 | bruno-at-bareos | Assigned To | => bruno-at-bareos |
2023-05-09 16:41 | bruno-at-bareos | Status | confirmed => resolved |
2023-05-09 16:41 | bruno-at-bareos | Resolution | open => fixed |
2023-05-09 16:41 | bruno-at-bareos | Note Added: 0005023 |