Path: utzoo!utgpu!attcan!uunet!husc6!bloom-beacon!apple!blob From: blob@Apple.COM (Brian Bechtel) Newsgroups: comp.sys.mac.programmer Subject: Re: How does the Finder tell diskettes apart? Message-ID: <381@internal.Apple.COM> Date: 6 Jan 89 14:51:16 GMT References: <730076@hpcilzb.HP.COM> <35187@think.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 27 In article <35187@think.UUCP> ephraim@think.com (Ephraim Vishniac) writes: >In article <730076@hpcilzb.HP.COM> tedj@hpcilzb.HP.COM (Ted Johnson) writes: > >>I've always wondered how the Finder tells the difference between two >>diskettes which have the same name. I assume there is some sort of >>unique number associated with each diskette when it is initialized. > >>Does anyone know the real story? > >Logically, the information has to be somewhere in the volume >information (the stuff in block 2). The only distinguishing fields I >see are drCrDate (initialization time), drLsBkUp (last modification >time), and the volume name. The sequence I see in the ROM listings is: check the signature word in the VCB check the creation date in the VCB check the volume name. if they match loop through any open files on the possibly remounted volume and see if they are still of the same length. I don't see any test of last modification time. Yes, this suprises me, too. I then went and tested this by modifying only the last modification time of a volume, and it remounted successfully. --Brian Bechtel blob@apple.com "My opinion, not Apple's"