1DPM_MODIFYFS(3)                   DPM      Library      Functions
2DPM_MODIFYFS(3)
3
4
5
6[1mNAME[0m
7       dpm_modifyfs ‐  modify  the  parameters  of  a  disk  pool
8filesystem
9
10[1mSYNOPSIS[0m
11       [1m#include <sys/types.h>[0m
12       [1m#include "dpm_api.h"[0m
13
14       [1mint   dpm_modifyfs  (char  *[4m[22mserver[24m[1m,  char
15*[4m[22mfs[24m[1m,      int       [4m[22mstatus[24m[1m,       int
16[4m[22mweight[24m[1m)[0m
17
18[1mDESCRIPTION[0m
19       [1mdpm_modifyfs [22mmodifies the parameters of a disk pool
20filesystem.
21
22       [4mserver[24m specifies the host name of the  disk  server
23where this filesystem
24              is mounted.
25
26       [4mfs[24m      specifies  the mount point of the dedicated
27filesystem.
28
29       [4mstatus[24m Initial status of this filesystem. It can be
30set to 0 or [1mFS_DIS‐[0m
31              [1mABLED   [22mor  [1mFS_RDONLY[22m.  (‐1 will tell
32the server to not change the
33              current value).
34
35       [4mweight[24m specifies the weight of the filesystem. This
36is used during  the
37              filesystem   selection.  The value must be positive
38(‐1 will tell
39              the server to not change the current value).  It is
40recommended
41              to use a value lower than 10.
42
43       This function requires ADMIN privilege.
44
45[1mRETURN VALUE[0m
46       This  routine  returns  0  if the operation was successful
47or ‐1 if the
48       operation failed. In the latter case, [1mserrno [22mis set
49appropriately.
50
51[1mERRORS[0m
52       [1mENOENT       [22mFilesystem does not exist.
53
54       [1mEACCES        [22mThe caller does not have ADMIN privi‐
55lege.
56
57       [1mEFAULT       [4m[22mserver[24m or [4mfs[24m is  a  NULL
58pointer.
59
60       [1mEINVAL        [22mThe length of  [4mserver[24m  exceeds
61[1mCA_MAXHOSTNAMELEN  [22mor  the
62                    length of [4mfs[24m exceeds 79.
63
64       [1mSENOSHOST    [22mHost unknown.
65
66       [1mSEINTERNAL   [22mDatabase error.
67
68       [1mSECOMERR     [22mCommunication error.
69
70
71
72LCG                                                        $Date$
73DPM_MODIFYFS(3)
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum