From 2e07b2cfa83d49147630186a1dfbe850248b09ac Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 13 Jun 2012 07:55:47 +0200 Subject: [PATCH] Remove restriction of network buffer size being multiple of a tape block --- bacula/src/lib/bsock.c | 10 ---------- 1 file changed, 10 deletions(-) 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; -- 2.39.5