1lsm_fs_resize(3)          Libstoragemgmt C API Manual         lsm_fs_resize(3)
2
3
4

NAME

6       lsm_fs_resize - Resizes a file system
7

SYNOPSIS

9       int    lsm_fs_resize   (lsm_connect   *conn,   lsm_fs   *fs,   uint64_t
10       new_size_bytes, lsm_fs **rfs, char **job_id, lsm_flag flags);
11

ARGUMENTS

13       conn        Valid connection.
14
15       fs          Pointer of lsm_fs to re-size
16
17       new_size_bytes
18                   uint64_t. New size of file system  in  bytes,  actual  size
19                   might  be  bigger than requested and will be based on array
20                   rounding to block size,
21
22       rfs         Output pointer of updated lsm_fs. Might be NULL if  storage
23                   system support asynchronous action on this.
24
25       job_id      Output  pointer  of string. If storage system support asyn‐
26                   chronous action on this, a job will be created and could be
27                   tracked  via  lsm_job_status_fs_get. NULL if storage system
28                   does not support asynchronous action on this.
29
30       flags       Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.
31

VERSION

33       1.0
34

DESCRIPTION

36       Resize the specified file system.
37

CAPABILITY

39       LSM_CAP_FS_RESIZE
40

RETURN

42       Error code as enumerated by 'lsm_error_number'.
43           * LSM_ERR_OK
44               On success.
45           * LSM_ERR_JOB_STARTED
46               A job is started. Please check the 'job' output pointer.
47           * LSM_ERR_INVALID_ARGUMENT
48               When any argument is NULL or not a valid lsm_connect pointer
49               or invalid flags.
50           * LSM_ERR_NOT_FOUND_FS
51               When file system not found.
52           * LSM_ERR_NOT_ENOUGH_SPACE
53               Pool does not have enough space.
54           * LSM_ERR_POOL_NOT_READY
55               Pool is not ready for volume resizing.
56           * LSM_ERR_NO_STATE_CHANGE
57               Requested size if identical to current size.
58           * LSM_ERR_NO_SUPPORT
59               Not supported.
60
61
62
63December 2019                    lsm_fs_resize                lsm_fs_resize(3)
Impressum