dpm_addfs man page
DPM_ADDFS(3) DPM Library Functions DPM_ADDFS(3)
dpm_addfs - add a filesystem to a disk pool
[1mint dpm_addfs (char *[4m[22mpoolname[24m[1m, char *[4m[22mserver[24m[1m, char *[4m[22mfs[24m[1m, int [4m[22mstatus[24m[1m, int[0m
[1mdpm_addfs [22madds a filesystem to a disk pool.
specifies the disk pool name previously defined using
[4mserver[24m specifies the host name of the disk server where this filesystem
[4mfs[24m specifies the mount point of the dedicated filesystem.
[4mstatus[24m Initial status of this filesystem. It can be set to 0 or [1mFS_DIS-[0m
[1mABLED [22mor [1mFS_RDONLY[22m.
[4mweight[24m specifies the weight of the filesystem. This is used during the
filesystem selection. The value must be positive. A negative
value will tell the server to allocate the default weight value
(1). It is recommended to use a value lower than 10.
This function requires ADMIN privilege.
This routine returns 0 if the operation was successful or -1 if the
operation failed. In the latter case, [1mserrno [22mis set appropriately.
[1mENOENT [22mFilesystem does not exist.
[1mEACCES [22mThe caller does not have ADMIN privilege.
[1mEFAULT [4m[22mpoolname[24m, [4mserver[24m or [4mfs[24m is a NULL pointer.
[1mEEXIST [22mthis filesystem is already part of a pool.
[1mENOMEM [22mMemory could not be allocated for storing the filesystem
[1mEINVAL [22mThe pool is unknown or the length of [4mpoolname[24m exceeds
[1mCA_MAXPOOLNAMELEN [22mor the length of [4mserver[24m exceeds [1mCA_MAX-[0m
[1mHOSTNAMELEN [22mor the length of [4mfs[24m exceeds 79.
[1mSENOSHOST [22mHost unknown.
[1mSEINTERNAL [22mDatabase error.
[1mSECOMERR [22mCommunication error.
LCG $Date: 2011-05-19 13:04:02 +0200 (Thu, 19 May 2011) $DPM_ADDFS(3)