Author: j16sdiz
Date: 2008-05-25 11:40:00 +0000 (Sun, 25 May 2008)
New Revision: 20091
Modified:
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
Log:
Really overwrite 512 bytes
Modified:
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
===================================================================
---
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
2008-05-23 23:59:07 UTC (rev 20090)
+++
branches/saltedhashstore/freenet/src/freenet/store/SaltedHashFreenetStore.java
2008-05-25 11:40:00 UTC (rev 20091)
@@ -629,7 +629,7 @@
int split = (int) (offset % FILE_SPLIT);
long rawOffset = (offset / FILE_SPLIT) * entryTotalLength;
- ByteBuffer bf = ByteBuffer.allocate((int) 0x100); // 512 bytes,
one physical disk block
+ ByteBuffer bf = ByteBuffer.allocate((int) 0x200); // 512 bytes,
one physical disk block
do {
int status = storeFC[split].write(bf, rawOffset +
bf.position());
if (status == -1)