]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Tweak MaximumVolumeSize error message in stored
authorEric Bollengier <eric@baculasystems.com>
Tue, 30 Nov 2021 14:03:28 +0000 (15:03 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:56 +0000 (13:56 +0200)
bacula/src/stored/stored.c

index 7f32d1a86b5bac73b4a535aef59cc6b237a4ee70..3cb870cad83468225df66d270731b4c71ff53ad7 100644 (file)
@@ -435,10 +435,10 @@ static int check_resources()
    }
 
    foreach_res(device, R_DEVICE) {
-      if (device->max_volume_size && (device->max_volume_size < 1024*1024)) {
+      if (device->max_volume_size && (device->max_volume_size < 1000000)) {
          Jmsg(NULL, M_FATAL, 0,
                _("Invalid (too small) MaximumVolumeSize: %llu for device: %s. "
-                 "MaxVolSize should be bigger or equal to 1048576 bytes\n"),
+                 "MaximumVolumeSize should be greater or equal to 1MB\n"),
                device->max_volume_size, device->hdr.name);
          OK = false;
       }