lsm_fs_child_dependency_delete man page

lsm_fs_child_dependency_delete — Delete all child dependencies of specified file system.

Synopsis

int lsm_fs_child_dependency_delete (lsm_connect *conn, lsm_fs *fs, lsm_string_list *files, char **job, lsm_flag flags);

Arguments

conn

Valid connection.

fs

Point of lsm_fs to remove dependencies for.

files

Pointer of lsm_string_list. Only work on specific files if defined. If NULL, just work on all files in this file system.

job

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.

flags

Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.

Version

1.0

Description

Deletes child dependencies by duplicating the required storage to remove.

Note

This could take a long time to complete based on dependencies.

Capability

LSM_CAP_FS_CHILD_DEPENDENCY_RM LSM_CAP_FS_CHILD_DEPENDENCY_RM_SPECIFIC_FILES

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_NOT_FOUND_FS
       When file system not found.
   * LSM_ERR_NO_STATE_CHANGE
       When file system has no child dependency.

Info

lsm_fs_child_dependency_delete October 2017 Libstoragemgmt C API Manual