25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: diskimage.c,v 1.5 2007/03/26 03:01:09 debug Exp $ |
* $Id: diskimage.c,v 1.6 2007/04/28 09:19:52 debug Exp $ |
29 |
* |
* |
30 |
* Disk image support. |
* Disk image support. |
31 |
* |
* |
419 |
} |
} |
420 |
|
|
421 |
/* Split the write into OVERLAY_BLOCK_SIZE writes: */ |
/* Split the write into OVERLAY_BLOCK_SIZE writes: */ |
422 |
for (curofs=offset; curofs<offset+len; curofs+=OVERLAY_BLOCK_SIZE) { |
for (curofs = offset; curofs < (off_t) (offset+len); |
423 |
|
curofs += OVERLAY_BLOCK_SIZE) { |
424 |
/* Always write to the last overlay: */ |
/* Always write to the last overlay: */ |
425 |
int overlay_nr = d->nr_of_overlays-1; |
int overlay_nr = d->nr_of_overlays-1; |
426 |
off_t lenwritten; |
off_t lenwritten; |