]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove restriction of network buffer size being multiple of a tape block
authorKern Sibbald <kern@sibbald.com>
Wed, 13 Jun 2012 05:55:47 +0000 (07:55 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:49 +0000 (14:50 +0200)
bacula/src/lib/bsock.c

index b6b06ea896c175cafe8bc059ac5223a3f4c5c784..0eeb74be483327ba3c17e9f936812aa244deb7f2 100644 (file)
@@ -724,11 +724,6 @@ bool BSOCK::set_buffer_size(uint32_t size, int rw)
          Qmsg1(get_jcr(), M_WARNING, 0,
                _("Warning network buffer = %d bytes not max size.\n"), dbuf_size);
       }
-      if (dbuf_size % TAPE_BSIZE != 0) {
-         Qmsg1(get_jcr(), M_ABORT, 0,
-               _("Network buffer size %d not multiple of tape block size.\n"),
-               dbuf_size);
-      }
    }
    if (size != 0) {
       dbuf_size = size;
@@ -748,11 +743,6 @@ bool BSOCK::set_buffer_size(uint32_t size, int rw)
          Qmsg1(get_jcr(), M_WARNING, 0,
                _("Warning network buffer = %d bytes not max size.\n"), dbuf_size);
       }
-      if (dbuf_size % TAPE_BSIZE != 0) {
-         Qmsg1(get_jcr(), M_ABORT, 0,
-               _("Network buffer size %d not multiple of tape block size.\n"),
-               dbuf_size);
-      }
    }
 
    msglen = dbuf_size;