From aea2a3a651967ba428108eea1dcccb970c1bd37d Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 14 Dec 2008 22:15:48 +0000 Subject: [PATCH] ebl Add some comments git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8163 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/block.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/stored/block.c b/bacula/src/stored/block.c index 9c58fe61e7..fef281595c 100644 --- a/bacula/src/stored/block.c +++ b/bacula/src/stored/block.c @@ -1116,6 +1116,9 @@ reread: dcr->EndBlock = dev->EndBlock; dcr->EndFile = dev->EndFile; } else { + /* We need to take care about a short block in EndBlock/File + * computation + */ uint32_t len = MIN(block->read_len, block->block_len); uint64_t addr = dev->file_addr + len - 1; dcr->EndBlock = (uint32_t)addr; -- 2.39.5