]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.0.x/2.0.3-maxbyteslist.patch
Cleanup patches a bit
[bacula/bacula] / bacula / patches / 2.0.x / 2.0.3-maxbyteslist.patch
1
2  This patch adds the MaxVolBytes to the output of a "show pools" command.
3  It fixes bug #814.  Apply it to Bacula version 2.0.3 with:
4
5    cd <bacula-source>
6    patch -p0 <2.0.3-maxbyteslist.patch
7    make
8    ...
9    make install
10
11
12 Index: src/dird/dird_conf.c
13 ===================================================================
14 --- src/dird/dird_conf.c        (revision 4349)
15 +++ src/dird/dird_conf.c        (working copy)
16 @@ -844,10 +844,13 @@
17                NPRT(res->res_pool.label_format));
18        sendit(sock, _("      CleaningPrefix=%s LabelType=%d\n"),
19                NPRT(res->res_pool.cleaning_prefix), res->res_pool.LabelType);
20 -      sendit(sock, _("      RecyleOldest=%d PurgeOldest=%d MaxVolJobs=%d MaxVolFiles=%d\n"),
21 +      sendit(sock, _("      RecyleOldest=%d PurgeOldest=%d\n"), 
22                res->res_pool.recycle_oldest_volume,
23 -              res->res_pool.purge_oldest_volume,
24 -              res->res_pool.MaxVolJobs, res->res_pool.MaxVolFiles);
25 +              res->res_pool.purge_oldest_volume);
26 +      sendit(sock, _("      MaxVolJobs=%d MaxVolFiles=%d MaxVolBytes=%s\n"),
27 +              res->res_pool.MaxVolJobs, 
28 +              res->res_pool.MaxVolFiles,
29 +              edit_uint64(res->res_pool.MaxVolFiles, ed1));
30        sendit(sock, _("      MigTime=%s MigHiBytes=%s MigLoBytes=%s\n"),
31                edit_utime(res->res_pool.MigrationTime, ed1, sizeof(ed1)),
32                edit_uint64(res->res_pool.MigrationHighBytes, ed2),