Add support for setting the Maximum concurrent jobs on a storage daemon, thanks to...
authorJamie Cameron <jcameron@webmin.com>
Wed, 30 Dec 2009 19:50:20 +0000 (11:50 -0800)
committerJamie Cameron <jcameron@webmin.com>
Wed, 30 Dec 2009 19:50:20 +0000 (11:50 -0800)
bacula-backup/CHANGELOG
bacula-backup/edit_storage.cgi
bacula-backup/lang/en
bacula-backup/save_storage.cgi

index a8853ad..02454fc 100644 (file)
@@ -10,3 +10,5 @@ Added a missing program so that mass deletion of storage devices works.
 ---- Changes since 1.490 ----
 Fixed fileset exlude list and 'Run at times' display, thanks to a patch by Joe Zhou.
 Added support for automatic volume labelling and max volume size, thanks to Caspar Smit.
+---- Changes since 1.500 ----
+Add support for setting the Maximum concurrent jobs on a storage daemon, thanks to Caspar Smit.
index bc328fd..89111cb 100755 (executable)
@@ -19,6 +19,8 @@ if ($in{'new'}) {
                    'value' => &get_system_hostname() },
                  { 'name' => 'Media Type',
                    'value' => 'File' },
+                 { 'name' => 'Maximum Concurrent Jobs',
+                   'value' => '20' },
                  { 'name' => 'Device',
                    'value' => $devices[0] },
                ];
@@ -77,6 +79,10 @@ else {
 print &ui_table_row($text{'storage_media'},
        &ui_textbox("media", $media=&find_value("Media Type", $mems), 20));
 
+# Maximum Concurrent Jobs
+print &ui_table_row($text{'storage_maxjobs'},
+       &ui_textbox("maxjobs", $maxjobs=&find_value("Maximum Concurrent Jobs", $mems), 5));
+
 # SSL options
 &show_tls_directives($storage);
 
index ce5f34f..cc3c374 100644 (file)
@@ -250,6 +250,7 @@ storage_port=Bacula SD port
 storage_pass=Bacula SD password
 storage_device=Storage device name
 storage_media=Media type name
+storage_maxjobs=Maximum concurrent jobs
 storage_other=Other..
 storage_err=Failed to save storage daemon
 storage_ename=Missing storage daemon name
@@ -259,6 +260,7 @@ storage_eaddress=Missing or invalid hostname or address
 storage_eport=Missing or invalid SD port
 storage_edevice=Missing storage device name
 storage_emedia=Missing media type name
+storage_emaxjobs=Missing maximum concurrent jobs
 storage_echild=This client cannot be deleted as it is used by $1
 storage_status=Show Status
 
index 4f3a575..98d18a7 100755 (executable)
@@ -59,6 +59,9 @@ else {
        $in{'media'} =~ /\S/ || &error($text{'storage_emedia'});
        &save_directive($conf, $storage, "Media Type", $in{'media'}, 1);
 
+       $in{'maxjobs'} =~ /\S/ || &error($text{'storage_emaxjobs'});
+       &save_directive($conf, $storage, "Maximum Concurrent Jobs", $in{'maxjobs'}, 1);
+
        # SSL directives
        &parse_tls_directives($conf, $storage, 1);