Path: utzoo!mnetor!uunet!husc6!bloom-beacon!think!ames!pasteur!ucbvax!decvax!decwrl!labrea!rocky!rokicki From: rokicki@rocky.STANFORD.EDU (Tomas Rokicki) Newsgroups: comp.sys.amiga Subject: Re: Is AmigaDOS sane? Message-ID: <976@rocky.STANFORD.EDU> Date: 20 Jan 88 15:30:40 GMT References: <30217R38@PSUVM> <2457@swan.ulowell.edu> Reply-To: rokicki@rocky.UUCP (Tomas Rokicki) Organization: Stanford University Computer Science Department Lines: 35 > If your file is bigger than 70272 bytes, you'll need one additional > block to hold some more information for the next 70272 bytes, and > so on. Actually, this occurs every 35,136 bytes, I believe. The total blocks taken by a file of $n$ bytes is 2 + floor((n-1)/488) + floor((n-1)/35136) I usually don't subtract the 1, I usually use the formula 2 + floor(n/488) + floor(n/35136) when seeing if there is space on a floppy for a file, to take into account possible off-by-1 errors. (Note that the floor function is the same as integer division in C with positive numbers.) So the biggest file you can put on a floppy (figure it out!) is 845,703 bytes but you can only put 439 1024 byte files or 879 1 byte files or 146 5120 byte files on a floppy diskette. Have fun!