From: Kern Sibbald Date: Wed, 13 Jun 2012 05:55:47 +0000 (+0200) Subject: Remove restriction of network buffer size being multiple of a tape block X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2e07b2cfa83d49147630186a1dfbe850248b09ac;p=bacula%2Fbacula Remove restriction of network buffer size being multiple of a tape block --- diff --git a/bacula/src/lib/bsock.c b/bacula/src/lib/bsock.c index b6b06ea896..0eeb74be48 100644 --- a/bacula/src/lib/bsock.c +++ b/bacula/src/lib/bsock.c @@ -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;