Scroll to navigation

lsm_volume_child_dependency_delete(3) Libstoragemgmt C API Manual lsm_volume_child_dependency_delete(3)

NAME

lsm_volume_child_dependency_delete - Delete all child dependencies of the specified volume.

SYNOPSIS

int lsm_volume_child_dependency_delete (lsm_connect *conn, lsm_volume *volume, char **job, lsm_flag flags);

ARGUMENTS

Valid connection.
Pointer of lsm_volume.
Output pointer of string. If storage system support asynchronous action on this, a job will be created and could be tracked via lsm_job_status_get. NULL if storage system does not support asynchronous action on this.
Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.

VERSION

1.0

DESCRIPTION

Instruct storage system to remove all child dependencies of the specified volume by duplicating the required storage before breaking replication relationship.

CAPABILITY

LSM_CAP_VOLUME_CHILD_DEPENDENCY_RM

RETURN

Error code as enumerated by 'lsm_error_number'.
* LSM_ERR_OK
On success.
* LSM_ERR_JOB_STARTED
A job is started. Please check the 'job' output pointer.
* LSM_ERR_INVALID_ARGUMENT
When any argument is NULL or not a valid lsm_connect pointer
or invalid flags or invalid lsm_volume pointer.
* LSM_ERR_NOT_FOUND_VOLUME
When volume not found.
* LSM_ERR_NO_STATE_CHANGE
When volume is not a replication source.
* LSM_ERR_NO_SUPPORT
Not supported.

lsm_volume_child_dependency_delete April 2023