mirror of
https://github.com/dkgrizzly/GreenSCSI.git
synced 2024-11-24 02:33:59 +00:00
File allocation fix
mkimg would create files 1/1048576 in size compared to the request.
This commit is contained in:
parent
cf468bcbde
commit
5aeb32e928
@ -1196,7 +1196,7 @@ void makeimagecmd(int argc, char **argv) {
|
|||||||
Serial.printf(": Unable to open '%s'.\r\n", tmp_path);
|
Serial.printf(": Unable to open '%s'.\r\n", tmp_path);
|
||||||
} else {
|
} else {
|
||||||
// Take advantage of our cylinders being 1MB
|
// Take advantage of our cylinders being 1MB
|
||||||
if(!file.preAllocate(cyl)) {
|
if(!file.preAllocate(fileSize)) {
|
||||||
file.close();
|
file.close();
|
||||||
sd.remove(tmp_path+3);
|
sd.remove(tmp_path+3);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user