Add support for setting the Maximum concurrent jobs on a storage daemon, thanks to Caspar Smit.

This commit is contained in:
Jamie Cameron
2009-12-30 11:50:20 -08:00
parent 4be29179df
commit c1a7bdecd0
4 changed files with 13 additions and 0 deletions

View 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.

View File

@@ -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);

View 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

View File

@@ -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);