🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #20724

Re: Getting a vRefNum from a DirID

#20724
From: Stew Rubenstein
Date: Sun, 25 Oct 1987 04:50
23 lines
1564 bytes
In article <1006@mntgfx.MENTOR.COM> tomc@mntgfx.MENTOR.COM (Tom Carstensen) writes:
>Put simply, how do you get a volume reference number
>(like that return from a SFGetFile), from a directory
>ID?  

SFGetFile usually returns a working directory reference number, not
a volume reference number.

If you have a real volume reference number and a DirID, and you need
a working directory reference number, use OpenWD.

If you have only a DirID, and don't know which physical disk it
is on, you don't have enough information.  You could try walking
the volume list with an indexed PBGetVInfo or somesuch, and try
opening a Working Directory on each volume until you get one that
succeeds...  (Did I really suggest that?  Must be late.)

I suggest you study IM 4, p. 98 and TechNote 77.

Stew Rubenstein
Cambridge Scientific Computing, Inc.
UUCPnet:    seismo!harvard!rubenstein            CompuServe: 76525,421
Internet:   rubenstein@harvard.harvard.edu       MCIMail:    CSC
Technical Details
Message-ID: <3047@husc6.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!endor!stew
References: <1006@mntgfx.MENTOR.COM>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!endor!stew
From: stew@endor.harvard.edu (Stew Rubenstein)
Newsgroups: comp.sys.mac
Subject: Re: Getting a vRefNum from a DirID
Message-ID: <3047@husc6.UUCP>
Date: Sat, 24-Oct-87 23:50:46 EST
Article-I.D.: husc6.3047
Posted: Sat Oct 24 23:50:46 1987
Date-Received: Mon, 26-Oct-87 05:52:30 EST
References: <1006@mntgfx.MENTOR.COM>
Sender: news@husc6.UUCP
Reply-To: stew@endor.UUCP (Stew Rubenstein)
Organization: Aiken Computation Lab Harvard, Cambridge, MA
Lines: 23