FIX: cache should not be used for dirty blocks!
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Fri, 29 Jul 2011 16:06:55 +0200
changeset 36 f361d688365c
parent 35 bbdb8ea3079a
child 37 cb50d6c57439
child 40 b8f8ec90c296
FIX: cache should not be used for dirty blocks!
bin/imager.fuse
--- a/bin/imager.fuse	Fri Jul 29 15:52:09 2011 +0200
+++ b/bin/imager.fuse	Fri Jul 29 16:06:55 2011 +0200
@@ -230,7 +230,7 @@
             $cache{fn} = $fn;
         }
 
-        return substr($cache{data}, $blockoffset, $size);
+        return substr($cache{data}, $blockoffset, $length);
         die "$fn: $!\n";
 
     }