|
Andreas Thienemann |
6be8d0 |
|
|
Andreas Thienemann |
6be8d0 |
This patch adds the MaxVolBytes to the output of a "show pools" command.
|
|
Andreas Thienemann |
6be8d0 |
It fixes bug #814. Apply it to Bacula version 2.0.3 with:
|
|
Andreas Thienemann |
6be8d0 |
|
|
Andreas Thienemann |
6be8d0 |
cd <bacula-source>
|
|
Andreas Thienemann |
6be8d0 |
patch -p0 <2.0.3-maxbyteslist.patch
|
|
Andreas Thienemann |
6be8d0 |
make
|
|
Andreas Thienemann |
6be8d0 |
...
|
|
Andreas Thienemann |
6be8d0 |
make install
|
|
Andreas Thienemann |
6be8d0 |
|
|
Andreas Thienemann |
6be8d0 |
|
|
Andreas Thienemann |
6be8d0 |
Index: src/dird/dird_conf.c
|
|
Andreas Thienemann |
6be8d0 |
===================================================================
|
|
Andreas Thienemann |
6be8d0 |
--- src/dird/dird_conf.c (revision 4349)
|
|
Andreas Thienemann |
6be8d0 |
+++ src/dird/dird_conf.c (working copy)
|
|
Andreas Thienemann |
6be8d0 |
@@ -844,10 +844,13 @@
|
|
Andreas Thienemann |
6be8d0 |
NPRT(res->res_pool.label_format));
|
|
Andreas Thienemann |
6be8d0 |
sendit(sock, _(" CleaningPrefix=%s LabelType=%d\n"),
|
|
Andreas Thienemann |
6be8d0 |
NPRT(res->res_pool.cleaning_prefix), res->res_pool.LabelType);
|
|
Andreas Thienemann |
6be8d0 |
- sendit(sock, _(" RecyleOldest=%d PurgeOldest=%d MaxVolJobs=%d MaxVolFiles=%d\n"),
|
|
Andreas Thienemann |
6be8d0 |
+ sendit(sock, _(" RecyleOldest=%d PurgeOldest=%d\n"),
|
|
Andreas Thienemann |
6be8d0 |
res->res_pool.recycle_oldest_volume,
|
|
Andreas Thienemann |
6be8d0 |
- res->res_pool.purge_oldest_volume,
|
|
Andreas Thienemann |
6be8d0 |
- res->res_pool.MaxVolJobs, res->res_pool.MaxVolFiles);
|
|
Andreas Thienemann |
6be8d0 |
+ res->res_pool.purge_oldest_volume);
|
|
Andreas Thienemann |
6be8d0 |
+ sendit(sock, _(" MaxVolJobs=%d MaxVolFiles=%d MaxVolBytes=%s\n"),
|
|
Andreas Thienemann |
6be8d0 |
+ res->res_pool.MaxVolJobs,
|
|
Andreas Thienemann |
6be8d0 |
+ res->res_pool.MaxVolFiles,
|
|
Andreas Thienemann |
6be8d0 |
+ edit_uint64(res->res_pool.MaxVolFiles, ed1));
|
|
Andreas Thienemann |
6be8d0 |
sendit(sock, _(" MigTime=%s MigHiBytes=%s MigLoBytes=%s\n"),
|
|
Andreas Thienemann |
6be8d0 |
edit_utime(res->res_pool.MigrationTime, ed1, sizeof(ed1)),
|
|
Andreas Thienemann |
6be8d0 |
edit_uint64(res->res_pool.MigrationHighBytes, ed2),
|