dpm_addpool man page

DPM_ADDPOOL(3) DPM Library Functions DPM_ADDPOOL(3)

[1mNAME[0m
dpm_addpool - define a new disk pool

[1mSYNOPSIS[0m
[1m#include <sys/types.h>[0m
[1m#include "dpm_api.h"[0m

[1mint dpm_addpool (struct dpm_pool *[4m[22mdpm_pool[24m[1m)[0m

[1mDESCRIPTION[0m
[1mdpm_addpool [22mdefines a new disk pool.

[4mdpm_pool[0m
contains the pool definition.

struct dpm_pool {
char poolname[CA_MAXPOOLNAMELEN+1];
u_signed64 defsize;
int gc_start_thresh;
int gc_stop_thresh;
int def_lifetime;
int defpintime;
int max_lifetime;
int maxpintime;
char fss_policy[CA_MAXPOLICYLEN+1];
char gc_policy[CA_MAXPOLICYLEN+1];
char mig_policy[CA_MAXPOLICYLEN+1];
char rs_policy[CA_MAXPOLICYLEN+1];
int nbgids;
gid_t *gids;
char ret_policy;
char s_type;
u_signed64 capacity;
u_signed64 free;
int nbelem;
};

[4mpoolname[0m
specifies the disk pool name.

[4mdefsize[0m
specifies the default amount of space reserved for a file (in
bytes).

[4mgc_start_thresh[0m
specifies the minimum free space in the pool. If the percentage
of free space goes below this value, the garbage collector is
started. Default is 0.

[4mgc_stop_thresh[0m
specifies the percentage of free space in the pool above which
the garbage collector is stopped. Default is 0.

[4mdef_lifetime[0m
specifies the default time a space or volatile file is kept in
the system (in seconds).

[4mdefpintime[0m
specifies the default time a file is kept on a given disk (in
seconds).

[4mmax_lifetime[0m
specifies the maximum time a space or volatile file is kept in
the system (in seconds).

[4mmaxpintime[0m
specifies the maximum time a file is kept on a given disk (in
seconds).

[4mnbgids[24m is the size of the array of group ids [4mgids[24m.

[4mgids[24m The disk pool is restricted to this set of gids unless the group
gid is zero.

[4mret_policy[0m
specifies the retention policy supported by the disk pool. It
can be [1mR [22m(for Replica), [1mO [22m(for Output) or [1mC [22m(for Custodial).

[4ms_type[24m indicates the type of space supported in the disk pool. It can
be [1mV [22m(for Volatile), [1mD [22m(for Durable), [1mP [22m(for Permanent) or [1m- [22m(to
accept any type).

This function requires ADMIN privilege.

[1mRETURN VALUE[0m
This routine returns 0 if the operation was successful or -1 if the
operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mERRORS[0m
[1mEACCES [22mThe caller does not have ADMIN privilege.

[1mEFAULT [4m[22mdpm_pool[24m is a NULL pointer.

[1mEEXIST [22mThis pool exists already.

[1mENOMEM [22mMemory could not be allocated for storing the pool defini-
tion.

[1mEINVAL [22mThe length of [4mpoolname[24m exceeds [1mCA_MAXPOOLNAMELEN [22mor the
number of gids is too big.

[1mSENOSHOST [22mHost unknown.

[1mSEINTERNAL [22mDatabase error.

[1mSECOMERR [22mCommunication error.

LCG $Date: 2011-05-19 12:54:37 +0200 (Thu, 19 May 2011)D$PM_ADDPOOL(3)

Info