lsm_volume_child_dependency - Man Page
Check whether volume has child dependencies.
Synopsis
int lsm_volume_child_dependency (lsm_connect *conn, lsm_volume *volume, uint8_t *yes, lsm_flag flags);
Arguments
- conn
Valid connection.
- volume
Pointer of lsm_volume.
- yes
uint8_t. 1 == Yes, 0 == No
- flags
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
Version
1.0
Description
Returns 1 if the specified volume has child dependencies, else returns 0. Child dependencies means specified volume is acting as source volume of a replication.
Capability
LSM_CAP_VOLUME_CHILD_DEPENDENCY
Return
Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or not a valid lsm_connect pointer
or invalid flags or invalid volume.
* LSM_ERR_NOT_FOUND_VOLUME
When volume not found.
* LSM_ERR_NO_SUPPORT
Not supported.