Added support for automatic volume labelling and max volume size, thanks to Caspar...
authorJamie Cameron <jcameron@webmin.com>
Tue, 17 Nov 2009 19:51:48 +0000 (11:51 -0800)
committerJamie Cameron <jcameron@webmin.com>
Tue, 17 Nov 2009 19:51:48 +0000 (11:51 -0800)
bacula-backup/CHANGELOG
bacula-backup/edit_pool.cgi
bacula-backup/lang/en
bacula-backup/save_pool.cgi

index 73ab4b4..a8853ad 100644 (file)
@@ -9,3 +9,4 @@ Backup schedules with Level= and Pool= tags are now properly displayed and edita
 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.
index 4b4e0ea..0e92831 100755 (executable)
@@ -68,6 +68,11 @@ if (&get_bacula_version_cached() < 2) {
        print &ui_table_row($text{'pool_any'},
                            &bacula_yesno("any", "Accept Any Volume", $mems));
        }
+print &ui_table_row($text{'pool_autolabel'},
+       &ui_textbox("autolabel", $name=&find_value("LabelFormat", $mems), 20), 3);
+print &ui_table_row($text{'pool_maxvolsize'},
+       &ui_textbox("maxvolsize", $name=&find_value("Maximum Volume Bytes", $mems), 10), 3);
+
 
 # All done
 print &ui_table_end();
index 558c489..ce5f34f 100644 (file)
@@ -342,6 +342,8 @@ pool_echild=This client cannot be deleted as it is used by $1
 pool_emax=Missing or invalid maximum number of jobs per volume
 pool_ereten=Missing or invalid retention period
 pool_status=Show Volumes
+pool_autolabel=Automatically label volumes prefix
+pool_maxvolsize=Maximum volume size (e.g. 5G for 5 Gigabytes)
 
 poolstatus_title=Volumes In Pool
 poolstatus_show=Show volumes in pool:
index 48f411b..e7d8da3 100755 (executable)
@@ -64,6 +64,9 @@ else {
                &save_directive($conf, $pool, "Accept Any Volume",
                                $in{'any'} || undef, 1);
                }
+       &save_directive($conf, $pool, "LabelFormat", $in{'autolabel'} || undef, 1);
+       &save_directive($conf, $pool, "Maximum Volume Bytes", $in{'maxvolsize'} || undef, 1);
+
 
        # Create or update
        if ($in{'new'}) {