1lsm_fs_ss_create(3) Libstoragemgmt C API Manual lsm_fs_ss_create(3)
2
3
4
6 lsm_fs_ss_create - Creates a file system snapshot
7
9 int lsm_fs_ss_create (lsm_connect *conn, lsm_fs *fs, const char *name,
10 lsm_fs_ss **snapshot, char **job, lsm_flag flags);
11
13 conn Valid connection.
14
15 fs Pointer of lsm_fs to create snapshot.
16
17 name String. Human recognizable name, might be altered or ig‐
18 nored by certain storage system.
19
20 snapshot Output pointer of lsm_fs_ss for newly created snapshot.
21
22 job Output pointer of string. If storage system support asyn‐
23 chronous action on this, a job will be created and could be
24 tracked via lsm_job_status_ss_get. NULL if storage system
25 does not support asynchronous action on this.
26
27 flags Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
28
30 1.0
31
33 Creates a new file system snapshot.
34
36 LSM_CAP_FS_SNAPSHOT_CREATE
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_NOT_ENOUGH_SPACE
50 Pool does not have enough space.
51 * LSM_ERR_POOL_NOT_READY
52 Pool is not ready for volume creation.
53 * LSM_ERR_NO_SUPPORT
54 Not supported.
55
56
57
58April 2023 lsm_fs_ss_create lsm_fs_ss_create(3)