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
do {
int status = storeFC[split].write(bf, rawOffset +
bf.position());
if (status == -1)