On Thursday 22 May 2008 11:21, [EMAIL PROTECTED] 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?

Attachment: pgpMIgdgSDyq5.pgp
Description: PGP signature

_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to