mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-10-30 02:26:58 +00:00
mkdos33fs: we were starting catalog at 11/1 instead of 11/f
this confuses some of the tools
This commit is contained in:
parent
a83c485a88
commit
a868c4957b
@ -151,14 +151,14 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
/* Create VTOC */
|
/* Create VTOC */
|
||||||
buffer[VTOC_DOS_RELEASE]=0x3; /* fake dos 3.3 */
|
buffer[VTOC_DOS_RELEASE]=0x3; /* fake dos 3.3 */
|
||||||
buffer[VTOC_CATALOG_T]=17;
|
buffer[VTOC_CATALOG_T]=0x11;
|
||||||
buffer[VTOC_CATALOG_S]=1; /* 1st Catalog typically at 0x11/0x1 */
|
buffer[VTOC_CATALOG_S]=0xf; /* 1st Catalog typically at 0x11/0xf */
|
||||||
buffer[VTOC_DISK_VOLUME]=254; /* typical volume 254 */
|
buffer[VTOC_DISK_VOLUME]=254; /* typical volume 254 */
|
||||||
buffer[VTOC_MAX_TS_PAIRS]=((block_size-0xc)/2)&0xff;
|
buffer[VTOC_MAX_TS_PAIRS]=((block_size-0xc)/2)&0xff;
|
||||||
/* Number of T/S pairs fitting */
|
/* Number of T/S pairs fitting */
|
||||||
/* in a T/S list sector */
|
/* in a T/S list sector */
|
||||||
/* Note, overflows if block_size>524 */
|
/* Note, overflows if block_size>524 */
|
||||||
buffer[VTOC_LAST_ALLOC_T]=18; /* last track space was allocated */
|
buffer[VTOC_LAST_ALLOC_T]=0x12; /* last track space was allocated */
|
||||||
/* Start at middle, work way out */
|
/* Start at middle, work way out */
|
||||||
buffer[VTOC_ALLOC_DIRECT]=1; /* Working our way outward */
|
buffer[VTOC_ALLOC_DIRECT]=1; /* Working our way outward */
|
||||||
buffer[VTOC_NUM_TRACKS]=num_tracks;
|
buffer[VTOC_NUM_TRACKS]=num_tracks;
|
||||||
@ -196,7 +196,7 @@ int main(int argc, char **argv) {
|
|||||||
buffer[VTOC_FREE_BITMAPS+11]=0x00;
|
buffer[VTOC_FREE_BITMAPS+11]=0x00;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reserve track 17 */
|
/* reserve track 17 (0x11) */
|
||||||
/* reserved for vtoc and catalog stuff */
|
/* reserved for vtoc and catalog stuff */
|
||||||
buffer[VTOC_FREE_BITMAPS+17*4]=0x00;
|
buffer[VTOC_FREE_BITMAPS+17*4]=0x00;
|
||||||
buffer[VTOC_FREE_BITMAPS+17*4+1]=0x00;
|
buffer[VTOC_FREE_BITMAPS+17*4+1]=0x00;
|
||||||
@ -209,11 +209,8 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
if (result<0) fprintf(stderr,"Error writing!\n");
|
if (result<0) fprintf(stderr,"Error writing!\n");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
end_of_program:
|
end_of_program:
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user