Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (D-E)
Guardian Procedure Calls Reference Manual522629-013
4-83
DISKINFO Procedure
(Superseded by FILE_GETINFOLISTBYNAME_
drivecaps output
INT(32) .EXT:ref:2
are the formatted capacities of the primary and mirror drives, in pages. These
values account for the space taken up for data protection (such as spare sectors),
but not for other uses. If the information is unavailable for a drive (because it is
inaccessible or not configured), its corresponding value is zero. These values are
provided for cases in which different model drives are mirrored and thus must be
labeled with the smaller of the two formatted capacities.
Consideration
You should always supply at least one output parameter when calling DISKINFO. If
you supply no output parameters, the returned
error value might vary with different
device types of
name and with different versions of the operating system.
Example
NAME ':=' " " & NAME FOR 11;
NAME ':=' "$SYSTEM";
ERR := DISKINFO (NAME ,, FREE ,, BIG );
IF ERR <> 0 THEN ... !handle error