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)  

objDesc.cpp File Reference
#include "rcMisc.h"
#include "rodsDef.h"
#include "objDesc.hpp"
#include "dataObjOpr.hpp"
#include "rsGlobalExtern.hpp"
#include "fileChksum.h"
#include "modDataObjMeta.h"
#include "objMetaOpr.hpp"
#include "collection.hpp"
#include "resource.hpp"
#include "dataObjClose.h"
#include "rcGlobalExtern.h"
#include "genQuery.h"
#include "rsGenQuery.hpp"
#include "rsGetHierFromLeafId.hpp"
#include "rsQuerySpecColl.hpp"
#include "rsDataObjClose.hpp"
#include "irods_resource_backport.hpp"
#include "irods_hierarchy_parser.hpp"
#include "irods_stacktrace.hpp"
#include "irods_re_structs.hpp"
#include "get_hier_from_leaf_id.h"
Include dependency graph for objDesc.cpp:

Go to the source code of this file.

Functions

int initL1desc ()
 
int allocL1desc ()
 
int isL1descInuse ()
 
int initSpecCollDesc ()
 
int allocSpecCollDesc ()
 
int freeSpecCollDesc (int specCollInx)
 
int closeAllL1desc (rsComm_t *rsComm)
 
int freeL1desc (int l1descInx)
 
int fillL1desc (int l1descInx, dataObjInp_t *dataObjInp, dataObjInfo_t *dataObjInfo, int replStatus, rodsLong_t dataSize)
 
int initDataObjInfoWithInp (dataObjInfo_t *dataObjInfo, dataObjInp_t *dataObjInp)
 
int getL1descIndexByDataObjInfo (const dataObjInfo_t *dataObjInfo)
 
int getNumThreads (rsComm_t *rsComm, rodsLong_t dataSize, int inpNumThr, keyValPair_t *condInput, char *destRescHier, char *srcRescHier, int oprType)
 
int initDataOprInp (dataOprInp_t *dataOprInp, int l1descInx, int oprType)
 
int initDataObjInfoForRepl (dataObjInfo_t *destDataObjInfo, dataObjInfo_t *srcDataObjInfo, const char *_resc_name)
 
int convL3descInx (int l3descInx)
 
int allocCollHandle ()
 
int freeCollHandle (int handleInx)
 
int rsInitQueryHandle (queryHandle_t *queryHandle, rsComm_t *rsComm)
 
int allocAndSetL1descForZoneOpr (int remoteL1descInx, dataObjInp_t *dataObjInp, rodsServerHost_t *remoteZoneHost, openStat_t *openStat)
 

Function Documentation

◆ allocAndSetL1descForZoneOpr()

int allocAndSetL1descForZoneOpr ( int  remoteL1descInx,
dataObjInp_t dataObjInp,
rodsServerHost_t remoteZoneHost,
openStat_t openStat 
)

◆ allocCollHandle()

int allocCollHandle ( )

Definition at line 585 of file objDesc.cpp.

References CollHandle, FD_FREE, FD_INUSE, and collHandle_t::inuseFlag.

Referenced by rsOpenCollection().

◆ allocL1desc()

int allocL1desc ( )

Definition at line 39 of file objDesc.cpp.

References FD_FREE, FD_INUSE, l1desc::inuseFlag, L1desc, LOG_NOTICE, NUM_L1_DESC, rodsLog(), and SYS_OUT_OF_FILE_DESC.

Referenced by _rsDataObjCreateWithResc(), _rsDataObjOpenWithObjInfo(), allocAndSetL1descForZoneOpr(), dataObjOpenForRepl(), and specCollSubCreate().

Here is the call graph for this function:

◆ allocSpecCollDesc()

int allocSpecCollDesc ( )

Definition at line 74 of file objDesc.cpp.

References FD_FREE, FD_INUSE, specCollDesc::inuseFlag, LOG_NOTICE, NUM_SPEC_COLL_DESC, rodsLog(), SpecCollDesc, and SYS_OUT_OF_FILE_DESC.

Referenced by openSpecColl().

Here is the call graph for this function:

◆ closeAllL1desc()

int closeAllL1desc ( rsComm_t rsComm)

Definition at line 108 of file objDesc.cpp.

References FD_INUSE, L1desc, l3Close(), NULL, and NUM_L1_DESC.

Referenced by cleanup(), and execCmd().

Here is the call graph for this function:

◆ convL3descInx()

◆ fillL1desc()

◆ freeCollHandle()

int freeCollHandle ( int  handleInx)

Definition at line 608 of file objDesc.cpp.

References clearCollHandle(), CollHandle, LOG_NOTICE, rodsLog(), and SYS_FILE_DESC_OUT_OF_RANGE.

Referenced by rsCloseCollection().

Here is the call graph for this function:

◆ freeL1desc()

int freeL1desc ( int  l1descInx)

Definition at line 124 of file objDesc.cpp.

References clearDataObjInp(), freeAllDataObjInfo(), freeDataObjInfo(), L1desc, LOG_NOTICE, NULL, NUM_L1_DESC, rodsLog(), and SYS_FILE_DESC_OUT_OF_RANGE.

Referenced by _rsDataObjClose(), _rsDataObjCreateWithResc(), _rsDataObjOpenWithObjInfo(), dataObjOpenForRepl(), irsDataObjClose(), rsOprComplete(), and specCollSubCreate().

Here is the call graph for this function:

◆ freeSpecCollDesc()

int freeSpecCollDesc ( int  specCollInx)

Definition at line 91 of file objDesc.cpp.

References freeDataObjInfo(), LOG_NOTICE, NULL, NUM_SPEC_COLL_DESC, rodsLog(), SpecCollDesc, and SYS_FILE_DESC_OUT_OF_RANGE.

Referenced by _rsQuerySpecColl().

Here is the call graph for this function:

◆ getL1descIndexByDataObjInfo()

int getL1descIndexByDataObjInfo ( const dataObjInfo_t dataObjInfo)

Definition at line 262 of file objDesc.cpp.

References L1desc, and NUM_L1_DESC.

Referenced by irods::file_object::file_object().

◆ getNumThreads()

int getNumThreads ( rsComm_t rsComm,
rodsLong_t  dataSize,
int  inpNumThr,
keyValPair_t condInput,
char *  destRescHier,
char *  srcRescHier,
int  oprType 
)

◆ initDataObjInfoForRepl()

int initDataObjInfoForRepl ( dataObjInfo_t destDataObjInfo,
dataObjInfo_t srcDataObjInfo,
const char *  _resc_name 
)

Definition at line 544 of file objDesc.cpp.

References DataObjInfo::condInput, DataObjInfo::dataId, DataObjInfo::filePath, irods::resource_manager::hier_to_leaf_id(), irods::log(), MAX_NAME_LEN, NAME_LEN, irods::error::ok(), PASS, replKeyVal(), DataObjInfo::replNum, resc_mgr, DataObjInfo::rescHier, DataObjInfo::rescId, DataObjInfo::rescName, and rstrcpy().

Referenced by dataObjOpenForRepl().

Here is the call graph for this function:

◆ initDataObjInfoWithInp()

int initDataObjInfoWithInp ( dataObjInfo_t dataObjInfo,
dataObjInp_t dataObjInp 
)

◆ initDataOprInp()

◆ initL1desc()

int initL1desc ( )

Definition at line 33 of file objDesc.cpp.

References L1desc.

Referenced by initAgent().

◆ initSpecCollDesc()

int initSpecCollDesc ( )

Definition at line 68 of file objDesc.cpp.

References SpecCollDesc.

Referenced by initAgent().

◆ isL1descInuse()

int isL1descInuse ( )

Definition at line 56 of file objDesc.cpp.

References FD_INUSE, L1desc, and NUM_L1_DESC.

Referenced by readAndProcClientMsg(), and readTimeoutHandler().

◆ rsInitQueryHandle()

int rsInitQueryHandle ( queryHandle_t queryHandle,
rsComm_t rsComm 
)

Definition at line 623 of file objDesc.cpp.

References QueryHandle::conn, QueryHandle::connType, QueryHandle::genQuery, QueryHandle::getHierForId, NULL, QueryHandle::querySpecColl, RS_COMM, rsGenQuery(), rsGetHierFromLeafId(), rsQuerySpecColl(), and USER__NULL_INPUT_ERR.

Referenced by rsOpenCollection().

Here is the call graph for this function: