dpm_updatespace man page

DPM_UPDATESPACE(3)           DPM Library Functions          DPM_UPDATESPACE(3)

      dpm_updatespace - update space

      [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

      [1mdpm_updatespace [22mupdates space.

      The input arguments are:

             specifies the token returned by a previous reservespace request.

             Total space requested in bytes.  If set to -1, the current value
             is unchanged.

             Guaranteed  space requested in bytes.  If set to -1, the current
             value is unchanged.

             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.

             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:

             Total space reserved in bytes (best effort).

             Guaranteed space reserved in bytes.

             Lifetime of the reserved space (in seconds) relative to the cur-
             rent time.

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

      [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)