🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.programmer.codewarrior
3 messages
3 total messages Started by Cliff Russell Fri, 22 Sep 2000 00:00
Identifying volumes
#1442
Author: Cliff Russell
Date: Fri, 22 Sep 2000 00:00
9 lines
1216 bytes
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.
Re: Identifying volumes
#1443
Author: Greg Weston
Date: Fri, 22 Sep 2000 00:00
13 lines
1631 bytes
In article <crussell-F00A86.12014622092000@news.island.net>, Cliff
Russell <crussell@acdsystems.com> wrote:

> 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).

Off the top of my head, a combination of name and formatting time.
PBGetVInfo returns this in the ioVCrDate field.

G
Re: Identifying volumes
#1446
Author: Graham Cox
Date: Sat, 23 Sep 2000 00:00
29 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads