1lsm_fs_delete(3) Libstoragemgmt C API Manual lsm_fs_delete(3)
2
3
4
6 lsm_fs_delete - Deletes a file system
7
9 int lsm_fs_delete (lsm_connect *conn, lsm_fs *fs, char **job, lsm_flag
10 flags);
11
13 conn Valid connection.
14
15 fs Pointer of lsm_fs that is to be deleted.
16
17 job Output pointer of string. If storage system support asyn‐
18 chronous action on this, a job will be created and could be
19 tracked via lsm_job_status_get. NULL if storage system does
20 not support asynchronous action on this.
21
22 flags Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
23
25 1.0
26
28 Deletes a file system and its data is lost! When file system has snap‐
29 shot attached, all its snapshot will be deleted also. When file system
30 is exported, all its exports will be deleted also. If specified file
31 system is has child dependency, it cannot be deleted. You may use
32 `lsm_fs_child_dependency` and `lsm_fs_child_dependency_delete` before
33 `lsm_fs_delete`.
34
36 LSM_CAP_FS_DELETE
37
39 Error code as enumerated by 'lsm_error_number'.
40 * LSM_ERR_OK
41 On success.
42 * LSM_ERR_JOB_STARTED
43 A job is started. Please check the 'job' output pointer.
44 * LSM_ERR_INVALID_ARGUMENT
45 When any argument is NULL or not a valid lsm_connect pointer
46 or invalid flags.
47 * LSM_ERR_NOT_FOUND_FS
48 When file system not found.
49 * LSM_ERR_POOL_NOT_READY
50 Pool is not ready.
51 * LSM_ERR_NO_SUPPORT
52 Not supported.
53 * LSM_ERR_HAS_CHILD_DEPENDENCY
54 Specified volume has child dependencies.
55
56
57
58November 2022 lsm_fs_delete lsm_fs_delete(3)