On Sat, May 24, 2008 at 2:31 AM, Matthew Toseland
<toad at amphibian.dyndns.org> wrote:
> 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?
>
thanks
fixed in r20091