Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!necntc!dandelion!ulowell!page From: page@swan.ulowell.edu (Bob Page) Newsgroups: comp.sys.amiga Subject: Re: AmigaLine6 - How to calulate the AmigaDOS hash function Message-ID: <2449@swan.ulowell.edu> Date: 19 Jan 88 21:13:12 GMT References: <8801182112.AA24295@jade.berkeley.edu> <22657@ucbvax.BERKELEY.EDU> Reply-To: page@swan.ulowell.edu (Bob Page) Organization: University of Lowell, Computer Science Dept. Lines: 18 bryce@hoser.berkeley.edu (Bryce Nesbitt) wrote: > this hash function is valid ONLY for filesystems of type "DOS ". That should be "DOS\0" or "DOS", not "DOS". Present and Future DOS haquers: you should check this from now on. Since the DOS utilities all want to see 'D' 'O' 'S' as the first three bytes of block zero (and don't care about the next byte), it is safe to assume that future versions of the file system will have something OTHER than '\0' there. So, if the LSByte of block 0, longword 0 is a zero, you're using the OLD file system. If it isn't, either the disk is trashed or you're using a NEW file system. ..Bob -- Bob Page, U of Lowell CS Dept. page@swan.ulowell.edu ulowell!page "I don't know such stuff. I just do eyes." -- from 'Blade Runner'