On Thursday 22 May 2008 11:21, j16sdiz at freenetproject.org wrote:
> Author: j16sdiz
> Date: 2008-05-22 10:21:02 +0000 (Thu, 22 May 2008)
> New Revision: 20025
> 
> Modified:
>    
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
> Log:
> write a complete disk block
> 
> 
> Modified: 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
> ===================================================================
> --- 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
2008-05-21 20:31:08 UTC (rev 20024)
> +++ 
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java  
2008-05-22 10:21:02 UTC (rev 20025)
> @@ -607,7 +607,7 @@
>               int split = (int) (offset % FILE_SPLIT);
>               long rawOffset = (offset / FILE_SPLIT) * entryTotalLength;
>  
> -             ByteBuffer bf = ByteBuffer.allocate((int) ENTRY_HEADER_LENGTH);
> +             ByteBuffer bf = ByteBuffer.allocate((int) 0x100); // 512 bytes, 
> one 
physical disk block

0x100 is 256, isn't it?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080523/f5ca9f4a/attachment.pgp>

Reply via email to