The image file size must include the size of the area before the FS.
This commit is contained in:
parent
2f72cb043d
commit
8b13d2ea93
|
@ -44,7 +44,7 @@ public class CoffeeImageFile implements CoffeeImage {
|
||||||
imageFile = new RandomAccessFile(filename, "rw");
|
imageFile = new RandomAccessFile(filename, "rw");
|
||||||
if (imageFile.length() == 0) {
|
if (imageFile.length() == 0) {
|
||||||
// Allocate a full file system image.
|
// Allocate a full file system image.
|
||||||
imageFile.setLength(conf.fsSize);
|
imageFile.setLength(conf.startOffset + conf.fsSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue