Skip to content

Commit

Permalink
disk: allow reading mgt layouts of 80x16x256 and 40x16x256
Browse files Browse the repository at this point in the history
  • Loading branch information
vamposdecampos committed Jun 22, 2012
1 parent 41a2a6d commit 0eb4b1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fuse/peripherals/disk/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,11 @@ open_img_mgt_opd( buffer_t *buffer, disk_t *d )
* 2*80*10*512, 1*80*10*512, 1*40*10*512, 1*40*18*256, 1*80*18*256,
* 2*80*18*256
*/
if( buffer->file.length == 2*80*10*512 ) {
if( buffer->file.length == 2*80*16*256 ) {
d->sides = 2; d->cylinders = 80; sectors = 16; seclen = 256;
} else if( buffer->file.length == 2*40*16*256 ) {
d->sides = 2; d->cylinders = 40; sectors = 16; seclen = 256;
} else if( buffer->file.length == 2*80*10*512 ) {
d->sides = 2; d->cylinders = 80; sectors = 10; seclen = 512;
} else if( buffer->file.length == 1*80*10*512 ) {
/* we cannot distinguish between a single sided 80 track image
Expand Down

0 comments on commit 0eb4b1b

Please sign in to comment.