Each OpSystem can host one or more volumes. A volume contains one or more Files.
Class
FCREPLVolume
Represents the top level on the file system hierarchy. In the hierarchy of the Replication Manager API, it is just below OpSystem.
Getters
Getters are not applicable.
Inherited getters
Volume identification |
|
OpSystem identification NoteThis is linked to the |
|
Volume name |
|
Volume description |
|
Volume total disk space |
|
Volume available disk space |
|
Setters
Volume name |
|
Volume description |
|
Inherited setters
Volum identification |
|
OpSystem identification NoteThis is linked to the |
|
Name |
|
Description |
|
Volume total disk space |
|
Volume available disk space |
|
Retrieve all the volume entity objects for the given OpSystem identification.
Prototype
FCREPL_API int fcReplGetVolumes(pFCREPLConn replConn, int osID, ppFCREPLVolume *volumeList, int *volumeCount);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| OS identification |
| Volume entity list |
| Number of volume entities in the list |
Return
Error code
Retrieve the volume entity object by its name.
Prototype
FCREPL_API int fcReplGetVolume(pFCREPLConn replConn, int osID, const char *name, ppFCREPLVolume volume);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| OS identification |
| Hardware name |
| Volume entity retrieved |
Return
Error code
Add a volume entity to the database. If there already is a volume with the given osID/name, update the existing record.
Prototype
FCREPL_API int fcReplPersistVolume(pFCREPLConn replConn, pFCREPLVolume volume);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Volume entity to be persisted |
Return
Error code
Delete the volume by its identification.
Prototype
FCREPL_API int fcReplRemoveVolume(pFCREPLConn replConn, int volumeID, bool recursive);
Parameters
Parameter | Description |
---|---|
| Replication connection handle |
| Volume identification |
| Recursive flag |
Return
Error code