| The DCL lexical F$GETDVI with item "STS" will return the status
information of the specified device.
$ write sys$output f$getdvi("$1$dua30:","STS")
returns
16
So what does 16 mean? Well, execute:
$ library sys$library:lib.mlb/extract=$ucbdef/output=ucbdef.txt
Edit ucbdef and look for 16. You get
$EQU UCB$M_ONLINE 16
So my device is online. This is a simple case.
From a stars article entitled "Detecting Mount Verification with
F$GETDVI" it states:
A disk is in a "mount verification has timed out" state if the
following conditions are true:
o the disk is mounted
o UCB$V_MNTVERIP in the STS field is clear (bit 14)
o UCB$V_VALID in the STS field is clear (bit 11)
o the ACP type (from DVI$_ACPTYPE) is either F11V1 or F11V2
A disk is in "mount verification in progress" if the following
conditions are true:
o the disk is mounted
o UCB$V_MNTVERIP in the STS field is set (bit 14)
DVI$_STS and STS return a vector which is documented in the $UCBDEF
module of the LIB.MLB macro library.
PChaplinsky
|