Hello Chris, Thanks for your test and feedback.
For this division error now I am seeing it on my side too. Thanks for the offer sending API and Web logs. Since I am able to reproduce it, the logs are not needed. I will try to fix it in the near future. Best regards, Marcin Haba (gani) On Sat, 19 Mar 2022 at 12:21, Chris Wilkinson <winstonia...@gmail.com> wrote: > Hello Marcin > > The patch was applied successfully and now I am able to set a volume max > bytes to larger values (>4GB) and the save is OK. > > However there is now another error when I click on the details of the pool. > > DivisionByZeroError Description > > Modulo by zero > Source File > > /var/www/baculum/protected/Web/Portlets/DirectiveSize.php (117) > > 0106: * Example: > 0107: * size_value: 121000 > 0108: * given format: b > 0109: * returned value: 121 > 0110: * returned format: kb > 0111: */ > 0112: private function formatSize($size_bytes, $format) { > 0113: $value = $size_bytes; > 0114: if ($value > 0) { > 0115: for ($i = (count($this->size_formats) - 1); $i >= 0; $i--) { > 0116: if ($this->size_formats[$i]['format'] != $format) { > 0117: $remainder = $value % > $this->size_formats[$i]['value']; > 0118: if ($remainder == 0) { > 0119: $value /= $this->size_formats[$i]['value']; > 0120: $format = $this->size_formats[$i]['format']; > 0121: break; > 0122: } > 0123: } > 0124: } > 0125: } > 0126: return array('value' => $value, 'format' => $format); > 0127: } > 0128: > 0129: private function getValueBytes($value, $size_format) { > > > I have saved the API and WEB logs but I don’t think I can send the > attachments to the list? > > I’m going to upgrade Raspbian to 64 bit so will not have the 32 bit > environment to do any further testing > > I’ll report back on how that goes. > > Best > -Chris- > > > > > On 17 Mar 2022, at 02:58, Marcin Haba <ganius...@gmail.com> wrote: > > Hello Chris, > > You can copy the patch to this directory: > > /var/www/baculum/protected/API/Class/ > > and then go to this directory: > > cd /var/www/baculum/protected/API/Class/ > > check if patch is applying: > > patch -p6 --dry-run < baculum_fix_save_resource_32bit.patch > > and if yes then finally run: > > patch -p6 < baculum_fix_save_resource_32bit.patch > > Good luck. > > Best regards, > Marcin > > On Wed, 16 Mar 2022 at 21:49, Chris Wilkinson <winstonia...@gmail.com> > wrote: > >> When I look at this patch, it seems to be for a tree that doesn't match >> what I have. >> >> The file to be patched is located at >> /var/www/baculum/protected/API/Class/.. in my tree. Do I need to drop the >> 'gui' in the patch? >> >> I am on v9.6.7 >> >> My knowledge of patching is sketchy at best so would it possible to send >> some instructions on applying it? >> >> Best >> Chris >> >> On Wed, 16 Mar 2022, 9:05 am Chris Wilkinson, <winstonia...@gmail.com> >> wrote: >> >>> Thank you Marcin for this patch. I’d expected it to be a lot more >>> complicated than that. I’ll check it out and let you know. >>> >>> Best >>> -Chris- >>> >>> >>> >>> >>> On 16 Mar 2022, at 06:17, Marcin Haba <ganius...@gmail.com> wrote: >>> >>> <baculum_fix_save_resource_32bit.patch> >>> >>> >>> > > -- > "Greater love hath no man than this, that a man lay down his life for his > friends." Jesus Christ > > "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za > przyjaciół swoich." Jezus Chrystus > > > -- "Greater love hath no man than this, that a man lay down his life for his friends." Jesus Christ "Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za przyjaciół swoich." Jezus Chrystus
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users