]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add some comments
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 14 Dec 2008 22:15:48 +0000 (22:15 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 14 Dec 2008 22:15:48 +0000 (22:15 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8163 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/block.c

index 9c58fe61e7bf885e315c0626012232b6ff264535..fef281595cd2cec1fc41dedbeaad8cabbeae7d8e 100644 (file)
@@ -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;