dpm_updatespace man page

DPM_UPDATESPACE(3) DPM Library Functions DPM_UPDATESPACE(3)

[1mNAME[0m
dpm_updatespace - update space

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

[1mint dpm_updatespace (char *[4m[22ms_token[24m[1m, u_signed64 [4m[22mreq_t_space[24m[1m, u_signed64[0m
[4mreq_g_space[24m[1m, time_t [4m[22mreq_lifetime[24m[1m, int [4m[22mnbgids[24m[1m, gid_t *[4m[22mreq_gids[24m[1m,[0m
[1mu_signed64 *[4m[22mactual_t_space[24m[1m, u_signed64 *[4m[22mactual_g_space[24m[1m, time_t[0m
[1m*[4m[22mactual_lifetime[24m[1m)[0m

[1mDESCRIPTION[0m
[1mdpm_updatespace [22mupdates space.

The input arguments are:

[4ms_token[0m
specifies the token returned by a previous reservespace request.

[4mreq_t_space[0m
Total space requested in bytes. If set to -1, the current value
is unchanged.

[4mreq_g_space[0m
Guaranteed space requested in bytes. If set to -1, the current
value is unchanged.

[4mreq_lifetime[0m
specifies the requested space lifetime (in seconds) relative to
the current time. If set to -1, the current value is unchanged.

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

[4mreq_gids[0m
when zero, the space is reserved for the user if the requester
has a proxy without VOMS extension or for the group if the
requester has a proxy with VOMS extension. If not zero, the
space is reserved for this set of group ids. If the caller does
not belong to the group, it must have ADMIN privileges.

The output arguments are:

[4mactual_t_space[0m
Total space reserved in bytes (best effort).

[4mactual_g_space[0m
Guaranteed space reserved in bytes.

[4mactual_lifetime[0m
Lifetime of the reserved space (in seconds) relative to the cur-
rent time.

[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
[1mEFAULT [4m[22ms_token[24m is a NULL pointer or [4mnbgids[24m is greater than 0 and
[4mreq_gids[24m is a NULL pointer.

[1mEINVAL [4m[22ms_token[24m is invalid (too long) or unknown or the space
requested is not a positive value or 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 20D1P1M)_U$PDATESPACE(3)

Info