1DPM_ADDFS(3) DPM Library Functions
2DPM_ADDFS(3)
3
4
5
6[1mNAME[0m
7 dpm_addfs ‐ add a filesystem to a disk pool
8
9[1mSYNOPSIS[0m
10 [1m#include <sys/types.h>[0m
11 [1m#include "dpm_api.h"[0m
12
13 [1mint dpm_addfs (char *[4m[22mpoolname[24m[1m, char
14*[4m[22mserver[24m[1m, char *[4m[22mfs[24m[1m, int [4m[22msta‐
15tus[24m[1m, int[0m
16 [4mweight[24m[1m)[0m
17
18[1mDESCRIPTION[0m
19 [1mdpm_addfs [22madds a filesystem to a disk pool.
20
21 [4mpoolname[0m
22 specifies the disk pool name previously
23defined using
24 [1mdpm_addpool[22m.
25
26 [4mserver[24m specifies the host name of the disk server
27where this filesystem
28 is mounted.
29
30 [4mfs[24m specifies the mount point of the dedicated
31filesystem.
32
33 [4mstatus[24m Initial status of this filesystem. It can be
34set to 0 or [1mFS_DIS‐[0m
35 [1mABLED [22mor [1mFS_RDONLY[22m.
36
37 [4mweight[24m specifies the weight of the filesystem.
38This is used during the
39 filesystem selection. The value must be positive.
40A negative
41 value will tell the server to allocate the default
42weight value
43 (1). It is recommended to use a value lower than
4410.
45
46 This function requires ADMIN privilege.
47
48[1mRETURN VALUE[0m
49 This routine returns 0 if the operation was successful or
50‐1 if the
51 operation failed. In the latter case, [1mserrno [22mis set
52appropriately.
53
54[1mERRORS[0m
55 [1mENOENT [22mFilesystem does not exist.
56
57 [1mEACCES [22mThe caller does not have ADMIN privi‐
58lege.
59
60 [1mEFAULT [4m[22mpoolname[24m, [4mserver[24m or
61[4mfs[24m is a NULL pointer.
62
63 [1mEEXIST [22mthis filesystem is already part of a
64pool.
65
66 [1mENOMEM [22mMemory could not be allocated for
67storing the filesystem
68 definition.
69
70 [1mEINVAL [22mThe pool is unknown or the length
71of [4mpoolname[24m exceeds
72 [1mCA_MAXPOOLNAMELEN [22mor the length of
73[4mserver[24m exceeds [1mCA_MAX‐[0m
74 [1mHOSTNAMELEN [22mor the length of [4mfs[24m
75exceeds 79.
76
77 [1mSENOSHOST [22mHost unknown.
78
79 [1mSEINTERNAL [22mDatabase error.
80
81 [1mSECOMERR [22mCommunication error.
82
83
84
85LCG $Date$
86DPM_ADDFS(3)
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