1lsm_volume_disable(3) Libstoragemgmt C API Manual lsm_volume_disable(3)
2
3
4
6 lsm_volume_disable - Set a Volume to offline
7
9 int lsm_volume_disable (lsm_connect *conn, lsm_volume *volume, lsm_flag
10 flags);
11
13 conn Valid lsm_connect pointer.
14
15 volume The pointer of lsm_volume to be disabled.
16
17 flags Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
18
20 1.0
21
23 Disable the read and write access to the specified volume.
24
26 LSM_CAP_VOLUME_DISABLE
27
29 Error code as enumerated by 'lsm_error_number'.
30 * LSM_ERR_OK
31 On success.
32 * LSM_ERR_INVALID_ARGUMENT
33 When any argument is NULL or not a valid lsm_connect pointer
34 or invalid flags.
35 * LSM_ERR_NOT_FOUND_VOLUME
36 When volume not found.
37 * LSM_ERR_POOL_NOT_READY
38 Pool is not ready.
39 * LSM_ERR_NO_SUPPORT
40 Not supported.
41
42
43
44November 2021 lsm_volume_disable lsm_volume_disable(3)