
MDR User Guide
47
ClearDiskInfo
Declaration:
STATUS ClearDiskInfo (DISK_INFO * DiskInfoTbl,
UINT DiskInfoTblSize);
Description:
Clear the disk group information on a list of disks.
This function clears the disk group information saved on the specified disks. The disks
used during this operation are specified using their information (port and controller
identifiers). The disk information can be retrieved using the
Scan
function.
After completion of this function, these disks will
NOT
contain any disk group
information. Therefore, any disk group information present on the disks will be
LOST
.
In a general way, this function should only be used when a disk has been extracted from
a disk group and cannot be inserted into a new disk group (because it still contains the
information of the previous disk group). Clearing the disk information on the disk fixes
the problem.
Returned value:
OK
or
ERROR
.
If
ERROR
is returned then the
errno
variable will be set accordingly. See
MdrDefs.h
for
MDR
errno
values.
ClearRecordingTable
Declaration:
STATUS ClearRecordingTable (void);
Description:
Clear the recording table.
This function clears the recording table by deleting all the recordings.
Returned value:
OK
or
ERROR
.
If
ERROR
is returned then the
errno
variable will be set accordingly. See
MdrDefs.h
for
MDR
errno
values.
ConnectToDiskGroup
Declaration:
STATUS ConnectToDiskGroup (char * DiskGroupId,
UINT Options =
MDR_DISK_GROUP_CONNECT_CLIENT,
UINT DiskStripeSize = 0);
Description:
Connect to an MDR Disk Group.
ConnectToDiskGroup
tries to establish a connection between the MDR Client (or MDR
Server) and the MDR disk group specified by
DiskGroupId
.
The
Options
parameter specifies which MDR actor (Client and/or Server) should be
connected to the disk group:
•
MDR_DISK_GROUP_CONNECT_CLIENT
: Only the MDR Client shall be connected to the
disk group. This option will be refused by the MDR Host Software if the MDR
Client is already connected to an MDR Server (the MDR Server shall also be
connected to the same disk group)
•
MDR_DISK_GROUP_CONNECT_SERVER
: Only the MDR Server shall be connected to the
disk group. This option will be refused by the MDR Host Software if the MDR
Client is already connected to a disk group (the MDR Client shall also be connected
to the same disk group)
•
MDR_DISK_GROUP_CONNECT_CLIENT || MDR_DISK_GROUP_CONNECT_SERVER
: Both
MDR Client and Server shall be connected to the disk group.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com