irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

getRescQuota.h
Go to the documentation of this file.
1 #ifndef GET_RESC_QUOTA_H__
2 #define GET_RESC_QUOTA_H__
3 
4 #include "rcConnect.h"
5 #include "objInfo.h"
6 #include "rodsType.h"
7 
8 // definition for RescQuotaPolicy and GlobalQuotaLimit
9 #define RESC_QUOTA_UNINIT -1 // RescQuotaPolicy not initialized
10 #define RESC_QUOTA_OFF 0 // RescQuotaPolicy disabled
11 #define RESC_QUOTA_ON 1 // RescQuotaPolicy enabled
12 
13 // definition for flags in updatequotaOverrun
14 #define GLB_QUOTA 0x1 // update the global quota
15 #define RESC_QUOTA 0x2 // update the resource quota
16 #define ALL_QUOTA GLB_QUOTA|RESC_QUOTA
17 
18 typedef struct getRescQuotaInp {
19  char rescName[NAME_LEN]; // resc Name
20  char userName[NAME_LEN]; // userName or userName#zone
22  int flags; // not used
23  int dummy;
24  keyValPair_t condInput; // include chksum flag and value
26 #define getRescQuotaInp_PI "str rescName[NAME_LEN]; str userName[NAME_LEN]; str zoneHint[MAX_NAME_LEN]; int flags; int dummy; struct KeyValPair_PI;"
27 
28 typedef struct rescQuota {
29  char rescName[NAME_LEN]; // resc Name
31  int flags;
32  int dummy;
35  struct rescQuota *next;
37 #define rescQuota_PI "str rescName[NAME_LEN]; str userId[NAME_LEN]; int flags; int dummy; double quotaLimit; double quotaOverrun; struct *rescQuota_PI;"
38 
39 // definition for flag in rescQuota_t
40 #define GLOBAL_QUOTA 0x1 // the quota is global
41 
43 int freeAllRescQuota( rescQuota_t *rescQuotaHead );
44 
45 #endif // GET_RESC_QUOTA_H__
rcComm_t
Definition: rcConnect.h:95
getRescQuotaInp::rescName
char rescName[64]
Definition: getRescQuota.h:19
getRescQuotaInp::zoneHint
char zoneHint[(1024+64)]
Definition: getRescQuota.h:21
rescQuota::next
struct rescQuota * next
Definition: getRescQuota.h:35
rescQuota::quotaOverrun
rodsLong_t quotaOverrun
Definition: getRescQuota.h:34
rcConnect.h
getRescQuotaInp::userName
char userName[64]
Definition: getRescQuota.h:20
getRescQuotaInp::flags
int flags
Definition: getRescQuota.h:22
rodsType.h
getRescQuotaInp
Definition: getRescQuota.h:18
rescQuota
Definition: getRescQuota.h:28
MAX_NAME_LEN
#define MAX_NAME_LEN
Definition: rodsDef.h:61
getRescQuotaInp_t
struct getRescQuotaInp getRescQuotaInp_t
rescQuota::quotaLimit
rodsLong_t quotaLimit
Definition: getRescQuota.h:33
rescQuota_t
struct rescQuota rescQuota_t
rescQuota::dummy
int dummy
Definition: getRescQuota.h:32
objInfo.h
rescQuota::flags
int flags
Definition: getRescQuota.h:31
rescQuota::rescName
char rescName[64]
Definition: getRescQuota.h:29
rcGetRescQuota
int rcGetRescQuota(rcComm_t *conn, getRescQuotaInp_t *getRescQuotaInp, rescQuota_t **rescQuota)
Definition: rcGetRescQuota.cpp:33
rescQuota::userId
char userId[64]
Definition: getRescQuota.h:30
getRescQuotaInp::dummy
int dummy
Definition: getRescQuota.h:23
NAME_LEN
#define NAME_LEN
Definition: rodsDef.h:55
KeyValPair
Definition: objInfo.h:120
getRescQuotaInp::condInput
keyValPair_t condInput
Definition: getRescQuota.h:24
rodsLong_t
long long rodsLong_t
Definition: rodsType.h:32
freeAllRescQuota
int freeAllRescQuota(rescQuota_t *rescQuotaHead)
Definition: rcMisc.cpp:1526