dpm_modifypool man page

DPM_MODIFYPOOL(3) DPM Library Functions DPM_MODIFYPOOL(3)

[1mNAME[0m
dpm_modifypool - modify a disk pool definition

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

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

[1mDESCRIPTION[0m
[1mdpm_modifypool [22mmodifies a disk pool definition.

[4mdpm_pool[0m
contains the new 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). If set to -1, the current value is unchanged.

[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. If set to -1, the current value is unchanged.

[4mgc_stop_thresh[0m
specifies the percentage of free space in the pool above which
the garbage collector is stopped. If set to -1, the current
value is unchanged.

[4mdef_lifetime[0m
specifies the default time a space or volatile file is kept in
the system (in seconds). If set to -1, the current value is
unchanged.

[4mdefpintime[0m
specifies the default time a file is kept on a given disk (in
seconds). If set to -1, the current value is unchanged.

[4mmax_lifetime[0m
specifies the maximum time a space or volatile file is kept in
the system (in seconds). If set to -1, the current value is
unchanged.

[4mmaxpintime[0m
specifies the maximum time a file is kept on a given disk (in
seconds). If set to -1, the current value is unchanged.

[4mnbgids[24m is the size of the array of group ids [4mgids[24m. If set to -1, the
current set is unchanged.

[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). If
set to 0, the current value is unchanged.

[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). If set to 0, the current value is unchanged.

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
[1mENOENT [22mThis pool does not exist.

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

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

[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 201D1P)M_$MODIFYPOOL(3)

Info