Path: utzoo!utgpu!attcan!uunet!husc6!rutgers!att!lzaz!hcj From: hcj@lzaz.ATT.COM (HC Johnson) Newsgroups: comp.os.minix Subject: Re: Minx ST BUg Summary: fixes for tos.c (atari) Keywords: tos -r on hard disk Message-ID: <260@lzaz.ATT.COM> Date: 7 Nov 88 15:16:57 GMT References: Organization: AT&T ISL Lincroft NJ USA Lines: 23 tos.c contains several bugs. 1. only 127 clusters can be written correctly on a hard disk fix: on lines 1102 and 1103, remove the (char) 2. depending on the size of the hard disk partition, writing will both damage files and the start of a new file will be missing. This is due to the number of directory blocks (which are scaled to the file system size. fix: change lines 339-343 to +FAT_START )); 3. Very large (16mb tos file systems) don't work at all. This is due to the fat size being > 32k, and sbrk, and read using signed integers. I have fixed it, but its too complicated for this posting. 4. PLEASE note. The effect of error 1., is to permanently damage the tos file system. I was using an empty one, so fixing just required using dd to copy blocks of 0's over the fats and dir. This is DANGEROUS!