Article View: comp.sys.mac.programmer.codewarrior
Article #1446Re: Identifying volumes
From: Graham Cox
Date: Sat, 23 Sep 2000 00:00
Date: Sat, 23 Sep 2000 00:00
29 lines
2241 bytes
2241 bytes
Just hash together a value based on catalogue information such as the creation date, logical length and so on. This is usually sufficiently unique. You may like to look at the way CD Remote stores this info so you could use existing catalogue information from the Apple CD Player (if this was important). Apple have a technote about how it works. cheers, Graham > From: Cliff Russell <crussell@acdsystems.com> > Organization: ACD Systems Inc > Newsgroups: > comp.sys.mac.programmer.codewarrior,comp.sys.mac.programmer.help,comp.sys.mac. > oop.powerplant,codewarrior.mac > Date: Fri, 22 Sep 2000 12:01:46 -0700 > Subject: Identifying volumes > > I am trying to maintain a catalog of CD's. Clearly they cannot all be > mounted at the same time. Is there any way I can retrieve some sort of > unique reference of a volume so I can later check to see if two > folders/files are on the same volume (without requiring that volume to > be mounted). > > The FSSpec contains the vRefNum, but its only guarantied to be unique > while the volume is mounted, and used to distingish between other > mounted volumes.
Technical Details
Message-ID:
<B5F2DC60.B028%graham@apptree.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<crussell-F00A86.12014622092000@news.island.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 101ec9,d7ce0b7acc9637c7 X-Google-Attributes: gid101ec9,public X-Google-Thread: 10bcce,d7ce0b7acc9637c7 X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,d7ce0b7acc9637c7 X-Google-Attributes: gidf635e,public X-Google-Thread: f7f77,d7ce0b7acc9637c7 X-Google-Attributes: gidf7f77,public From: Graham Cox <graham@apptree.co.uk> Subject: Re: Identifying volumes Date: 2000/09/23 Message-ID: <B5F2DC60.B028%graham@apptree.co.uk> X-Deja-AN: 673324129 Content-transfer-encoding: 7bit References: <crussell-F00A86.12014622092000@news.island.net> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 969743826 62.253.49.66 (Sat, 23 Sep 2000 22:17:06 BST) Organization: ntlworld News Service Mime-version: 1.0 User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) NNTP-Posting-Date: Sat, 23 Sep 2000 22:17:06 BST Newsgroups: comp.sys.mac.programmer.codewarrior,comp.sys.mac.programmer.help,comp.sys.mac.oop.powerplant,codewarrior.mac