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)  

rsGetRescQuota.cpp File Reference
#include "rcMisc.h"
#include "getRescQuota.h"
#include "miscUtil.h"
#include "objMetaOpr.hpp"
#include "resource.hpp"
#include "rsGetRescQuota.hpp"
#include "genQuery.h"
#include "rsGenQuery.hpp"
#include "irods_resource_backport.hpp"
Include dependency graph for rsGetRescQuota.cpp:

Go to the source code of this file.

Functions

int rsGetRescQuota (rsComm_t *rsComm, getRescQuotaInp_t *getRescQuotaInp, rescQuota_t **rescQuota)
 
int _rsGetRescQuota (rsComm_t *rsComm, getRescQuotaInp_t *getRescQuotaInp, rescQuota_t **rescQuota)
 
int getQuotaByResc (rsComm_t *rsComm, char *userName, char *rescName, genQueryOut_t **genQueryOut)
 
int queRescQuota (rescQuota_t **rescQuotaHead, genQueryOut_t *genQueryOut)
 
int fillRescQuotaStruct (rescQuota_t *rescQuota, char *tmpQuotaLimit, char *tmpQuotaOver, char *tmpRescName, char *tmpQuotaRescId, char *tmpQuotaUserId)
 
int setRescQuota (rsComm_t *_comm, const char *_obj_path, const char *_resc_name, rodsLong_t _data_size)
 
int updatequotaOverrun (const char *_resc_hier, rodsLong_t _data_size, int _flags)
 
int chkRescQuotaPolicy (rsComm_t *rsComm)
 

Function Documentation

◆ _rsGetRescQuota()

int _rsGetRescQuota ( rsComm_t rsComm,
getRescQuotaInp_t getRescQuotaInp,
rescQuota_t **  rescQuota 
)

Definition at line 47 of file rsGetRescQuota.cpp.

References freeGenQueryOut(), getQuotaByResc(), NULL, queRescQuota(), getRescQuotaInp::rescName, irods.pypyodbc::status, USER__NULL_INPUT_ERR, and getRescQuotaInp::userName.

Referenced by rsGetRescQuota().

Here is the call graph for this function:

◆ chkRescQuotaPolicy()

int chkRescQuotaPolicy ( rsComm_t rsComm)

Definition at line 337 of file rsGetRescQuota.cpp.

References applyRule(), clearKeyVal(), RuleExecInfo::condInputData, initReiWithDataObjInp(), LOG_ERROR, NO_SAVE_REI, NULL, RESC_QUOTA_OFF, RESC_QUOTA_UNINIT, RescQuotaPolicy, rodsLog(), and irods.pypyodbc::status.

Referenced by setRescQuota().

Here is the call graph for this function:

◆ fillRescQuotaStruct()

int fillRescQuotaStruct ( rescQuota_t rescQuota,
char *  tmpQuotaLimit,
char *  tmpQuotaOver,
char *  tmpRescName,
char *  tmpQuotaRescId,
char *  tmpQuotaUserId 
)

Definition at line 187 of file rsGetRescQuota.cpp.

References rescQuota::flags, GLOBAL_QUOTA, NAME_LEN, rescQuota::quotaLimit, rescQuota::quotaOverrun, rescQuota::rescName, rstrcpy(), and rescQuota::userId.

Referenced by queRescQuota().

Here is the call graph for this function:

◆ getQuotaByResc()

int getQuotaByResc ( rsComm_t rsComm,
char *  userName,
char *  rescName,
genQueryOut_t **  genQueryOut 
)

Definition at line 80 of file rsGetRescQuota.cpp.

References addInxVal(), clearGenQueryInp(), COL_R_RESC_NAME, COL_USER_NAME, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, GenQueryInp::options, QUOTA_QUERY, rsGenQuery(), GenQueryInp::sqlCondInp, irods.pypyodbc::status, and USER__NULL_INPUT_ERR.

Referenced by _rsGetRescQuota().

Here is the call graph for this function:

◆ queRescQuota()

int queRescQuota ( rescQuota_t **  rescQuotaHead,
genQueryOut_t genQueryOut 
)

Definition at line 128 of file rsGetRescQuota.cpp.

References COL_QUOTA_LIMIT, COL_QUOTA_OVER, COL_QUOTA_RESC_ID, COL_QUOTA_USER_ID, COL_R_RESC_NAME, fillRescQuotaStruct(), getSqlResultByInx(), SqlResult::len, LOG_ERROR, rescQuota::next, NULL, rodsLog(), GenQueryOut::rowCnt, UNMATCHED_KEY_OR_INDEX, and SqlResult::value.

Referenced by _rsGetRescQuota().

Here is the call graph for this function:

◆ rsGetRescQuota()

int rsGetRescQuota ( rsComm_t rsComm,
getRescQuotaInp_t getRescQuotaInp,
rescQuota_t **  rescQuota 
)

Definition at line 21 of file rsGetRescQuota.cpp.

References _rsGetRescQuota(), rodsServerHost::conn, getAndConnRcatHost(), LOCAL_HOST, rodsServerHost::localFlag, rcGetRescQuota(), SLAVE_RCAT, irods.pypyodbc::status, and getRescQuotaInp::zoneHint.

Referenced by setRescQuota().

Here is the call graph for this function:

◆ setRescQuota()

◆ updatequotaOverrun()

int updatequotaOverrun ( const char *  _resc_hier,
rodsLong_t  _data_size,
int  _flags 
)

Definition at line 296 of file rsGetRescQuota.cpp.

References irods::error::code(), GLB_QUOTA, GlobalQuotaOverrun, irods::resource_manager::hier_to_leaf_id(), irods::log(), irods::error::ok(), deploy_schemas_locally::parser, PASS, resc_mgr, RESC_QUOTA, and irods::RESOURCE_QUOTA_OVERRUN().

Referenced by _rsDataObjClose().

Here is the call graph for this function: