🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: vmsnet.internals
Article #372

RE: Help! (sys$init_vol)

#372
From: GWDGV1::MOELLER
Date: Wed, 14 Oct 1992 09:38
24 lines
1552 bytes
Ehud Gavron <GAVRON@IT.SUNQUEST.COM> writes:
>        I'm trying to create a piece of code to initialize a disk or
>        tape volume.  However, when I call sys$init_vol I get back
>        ss$_badparam.  Can anyone either
>                a. tell me what I'm doing wrong
>                b. show me how to do it right?
>[...]
>      char *list_pointer;
>[...]
>     list_pointer = (char *)&initlist[0];
>[...]
>     i =sys$init_vol((char *)device_name,(char *)volume_label,&list_pointer);

Try to pass `initlist' by reference, i.e. drop `&' from the argument list.

BTW, in case you want to install this program with VOLPRO privilege,
you may be in for a nasty surprise: SYS$INIT_VOL(), when applied to *tapes*,
checks for PROCPRV and not for CURPRV (the code for disks is o.k.).
I SPR'ed this last year for VMS 5.4-2. For a workaround, I'm now calling
SYS$INIT_VOL() from EXEC mode with temporarily elevated PROCPRV ...

Wolfgang J. Moeller, GWDG, D-3400 Goettingen, F.R.Germany | Disclaimer ...
PSI%(0262)45050352008::MOELLER      Phone: +49 551 201516 | No claim intended!
Internet: moeller@gwdgv1.dnet.gwdg.de   | This space intentionally left blank.
Technical Details
Message-ID: <8611223@MVB.SAIC.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!news.service.uci.edu!unogate!mvb.saic.com!macro32

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!news.service.uci.edu!unogate!mvb.saic.com!macro32
From: "GWDGV1::MOELLER" <moeller@gwdgv1.dnet.gwdg.de>
Newsgroups: vmsnet.internals
Subject: RE: Help! (sys$init_vol)
Message-ID: <8611223@MVB.SAIC.COM>
Date: Wed, 14 Oct 1992 10:38:33 +0100
Organization: Macro32<==>Vmsnet.Internals Gateway
X-Gateway-Source-Info: Mailing List
Lines: 24