Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dpm_getpools(3) [debian man page]

DPM_GETPOOLS(3) 					       DPM Library Functions						   DPM_GETPOOLS(3)

NAME
dpm_getpools - get list of pools SYNOPSIS
#include <sys/types.h> #include "dpm_api.h" int dpm_getpools (int *nbpools, struct dpm_pool **dpm_pools) DESCRIPTION
dpm_getpools gets list of pools. The output arguments are: nbpools will be set to the number of replies in the array of pools. dpm_pools will be set to the address of an array of dpm_pool structures allocated by the API. The client application is responsible for free- ing the array when not needed anymore. This is also necessary for the gids entry of each dpm_pool. 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; /* restrict the pool to given group(s) */ char ret_policy; /* retention policy: 'R', 'O' or 'C' */ char s_type; /* space type: 'V', 'D' or 'P' */ u_signed64 capacity; u_signed64 free; struct dpm_fs *elemp; int nbelem; int next_elem; /* next pool element to be used */ }; RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
EFAULT nbpools or dpm_pools is a NULL pointer. ENOMEM Memory could not be allocated for storing the reply. SENOSHOST Host unknown. SECOMERR Communication error. LCG
$Date: 2007/04/30 06:39:28 $ DPM_GETPOOLS(3)

Check Out this Related Man Page

DPM_MODIFYPOOL(3)					       DPM Library Functions						 DPM_MODIFYPOOL(3)

NAME
dpm_modifypool - modify a disk pool definition SYNOPSIS
#include <sys/types.h> #include "dpm_api.h" int dpm_modifypool (struct dpm_pool *dpm_pool) DESCRIPTION
dpm_modifypool modifies a disk pool definition. dpm_pool 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; }; poolname specifies the disk pool name. defsize specifies the default amount of space reserved for a file (in bytes). If set to -1, the current value is unchanged. gc_start_thresh 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. gc_stop_thresh 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. def_lifetime 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. defpintime specifies the default time a file is kept on a given disk (in seconds). If set to -1, the current value is unchanged. max_lifetime 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. maxpintime specifies the maximum time a file is kept on a given disk (in seconds). If set to -1, the current value is unchanged. nbgids is the size of the array of group ids gids. If set to -1, the current set is unchanged. gids The disk pool is restricted to this set of gids unless the group gid is zero. ret_policy specifies the retention policy supported by the disk pool. It can be R (for Replica), O (for Output) or C (for Custodial). If set to 0, the current value is unchanged. s_type indicates the type of space supported in the disk pool. It can be V (for Volatile), D (for Durable), P (for Permanent) or - (to accept any type). If set to 0, the current value is unchanged. This function requires ADMIN privilege. RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
ENOENT This pool does not exist. EACCES The caller does not have ADMIN privilege. EFAULT dpm_pool is a NULL pointer. EINVAL The length of poolname exceeds CA_MAXPOOLNAMELEN or the number of gids is too big. SENOSHOST Host unknown. SEINTERNAL Database error. SECOMERR Communication error. LCG
$Date: 2011-05-23 14:22:57 +0200 (Mon, 23 May 2011) $ DPM_MODIFYPOOL(3)
Man Page