From: Eric Bollengier Date: Sun, 14 Dec 2008 22:15:48 +0000 (+0000) Subject: ebl Add some comments X-Git-Tag: Release-3.0.0~479 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=758f127757d1bf53e5a3277e3e12f82daf112ab2;p=bacula%2Fbacula ebl Add some comments git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8163 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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;