The image file size must include the size of the area before the FS.

This commit is contained in:
Nicolas Tsiftes 2012-11-20 10:49:57 +01:00
parent 2f72cb043d
commit 8b13d2ea93

View file

@ -44,7 +44,7 @@ public class CoffeeImageFile implements CoffeeImage {
imageFile = new RandomAccessFile(filename, "rw");
if (imageFile.length() == 0) {
// Allocate a full file system image.
imageFile.setLength(conf.fsSize);
imageFile.setLength(conf.startOffset + conf.fsSize);
}
}