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.
![]() ![]() |
#include "rcMisc.h"
#include "collection.hpp"
#include "specColl.hpp"
#include "genQuery.h"
#include "specificQuery.h"
#include "dataObjRename.h"
#include "readCollection.h"
#include "closeCollection.h"
#include "collCreate.h"
#include "objMetaOpr.hpp"
#include "rsGenQuery.hpp"
#include "rsSpecificQuery.hpp"
#include "rsOpenCollection.hpp"
#include "rsReadCollection.hpp"
#include "rsCloseCollection.hpp"
#include "rsObjStat.hpp"
#include "rsCollCreate.hpp"
#include "rsDataObjRename.hpp"
#include "irods_virtual_path.hpp"
Go to the source code of this file.
Functions | |
int | checkCollAccessPerm (rsComm_t *rsComm, char *collection, char *accessPerm) |
int | trySpecificQueryDataObjInCollReCur (rsComm_t *rsComm, char *collection, genQueryOut_t **genQueryOut) |
int | rsQueryDataObjInCollReCur (rsComm_t *rsComm, char *collection, genQueryInp_t *genQueryInp, genQueryOut_t **genQueryOut, char *accessPerm, int singleFlag) |
int | rsQueryCollInColl (rsComm_t *rsComm, char *collection, genQueryInp_t *genQueryInp, genQueryOut_t **genQueryOut) |
int | isCollEmpty (rsComm_t *rsComm, char *collection) |
int | collStat (rsComm_t *rsComm, dataObjInp_t *dataObjInp, rodsObjStat_t **rodsObjStatOut) |
int | collStatAllKinds (rsComm_t *rsComm, dataObjInp_t *dataObjInp, rodsObjStat_t **rodsObjStatOut) |
int | rsMkCollR (rsComm_t *rsComm, const char *startColl, const char *destColl) |
Definition at line 35 of file collection.cpp.
References ACCESS_PERMISSION_KW, addInxIval(), addInxVal(), addKeyVal(), clearGenQueryInp(), rsComm_t::clientUser, COL_COLL_ID, COL_COLL_NAME, GenQueryInp::condInput, freeGenQueryOut(), LONG_NAME_LEN, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, RODS_ZONE_CLIENT_KW, userInfo_t::rodsZone, rsGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, SYS_INTERNAL_NULL_INPUT_ERR, USER_NAME_CLIENT_KW, and userInfo_t::userName.
Referenced by chkCollForExtAndReg(), and resolvePathInSpecColl().
int collStat | ( | rsComm_t * | rsComm, |
dataObjInp_t * | dataObjInp, | ||
rodsObjStat_t ** | rodsObjStatOut | ||
) |
Definition at line 271 of file collection.cpp.
References addInxIval(), addInxVal(), clearGenQueryInp(), COL_COLL_CREATE_TIME, COL_COLL_ID, COL_COLL_INFO1, COL_COLL_INFO2, COL_COLL_MODIFY_TIME, COL_COLL_NAME, COL_COLL_OWNER_NAME, COL_COLL_OWNER_ZONE, COL_COLL_TYPE, COLL_OBJ_T, collType(), freeGenQueryOut(), getSqlResultByInx(), int(), LOG_ERROR, matchSpecCollCache(), MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NAME_LEN, NULL, DataObjInp::objPath, queueSpecCollCache(), replSpecColl(), rodsLog(), rsGenQuery(), rstrcpy(), GenQueryInp::selectInp, SpecCollCache::specColl, SpecCollCacheHead, GenQueryInp::sqlCondInp, irods.pypyodbc::status, TIME_LEN, UNMATCHED_KEY_OR_INDEX, and SqlResult::value.
Referenced by _rsObjStat(), dirPathReg(), linkCollReg(), mountFileDir(), irods::resolve_resource_hierarchy(), rsSyncMountedColl(), specCollSubStat(), structFileReg(), and unmountFileDir().
int collStatAllKinds | ( | rsComm_t * | rsComm, |
dataObjInp_t * | dataObjInp, | ||
rodsObjStat_t ** | rodsObjStatOut | ||
) |
Definition at line 405 of file collection.cpp.
References _rsObjStat(), addKeyVal(), COLL_OBJ_T, DataObjInp::condInput, freeRodsObjStat(), NULL, OBJ_PATH_DOES_NOT_EXIST, rmKeyVal(), SEL_OBJ_TYPE_KW, and irods.pypyodbc::status.
Referenced by chkCollForExtAndReg(), and isCollAllKinds().
Definition at line 229 of file collection.cpp.
References CollInp::collName, False, CollInp::flags, LOG_ERROR, MAX_NAME_LEN, NULL, rodsLog(), rsCloseCollection(), rsOpenCollection(), rsReadCollection(), rstrcpy(), and True.
Referenced by linkCollReg(), mountFileDir(), and structFileReg().
Definition at line 428 of file collection.cpp.
References appendRandomToPath(), CAT_NAME_EXISTS_AS_DATAOBJ, CATALOG_ALREADY_HAS_ITEM_BY_THAT_NAME, clearKeyVal(), CollInp::collName, CollInp::condInput, DataObjCopyInp::destDataObjInp, irods::get_virtual_path_separator(), isCollAllKinds(), isTrashPath(), LOG_DEBUG, LOG_ERROR, MAX_NAME_LEN, NULL, DataObjInp::objPath, DataObjInp::oprType, RENAME_DATA_OBJ, rodsLog(), rsCollCreate(), rsDataObjRename(), rstrcpy(), DataObjCopyInp::srcDataObjInp, and irods.pypyodbc::status.
Referenced by _bulkRegUnbunSubfiles(), _rsBulkDataObjPut(), _rsCollRsync(), chkCollForExtAndReg(), moveMountedCollCollObj(), regUnbunSubfiles(), rsCollCreate(), rsDataObjCopy(), rsMkBundlePath(), rsMkTrashPath(), and unbunBulkBuf().
int rsQueryCollInColl | ( | rsComm_t * | rsComm, |
char * | collection, | ||
genQueryInp_t * | genQueryInp, | ||
genQueryOut_t ** | genQueryOut | ||
) |
Definition at line 204 of file collection.cpp.
References addInxIval(), addInxVal(), COL_COLL_NAME, COL_COLL_PARENT_NAME, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, rsGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, and USER__NULL_INPUT_ERR.
int rsQueryDataObjInCollReCur | ( | rsComm_t * | rsComm, |
char * | collection, | ||
genQueryInp_t * | genQueryInp, | ||
genQueryOut_t ** | genQueryOut, | ||
char * | accessPerm, | ||
int | singleFlag | ||
) |
Definition at line 131 of file collection.cpp.
References ACCESS_PERMISSION_KW, addInxIval(), addInxVal(), addKeyVal(), CAT_NO_ROWS_FOUND, rsComm_t::clientUser, COL_COLL_NAME, COL_D_DATA_ID, COL_D_DATA_PATH, COL_D_RESC_ID, COL_D_RESC_NAME, COL_DATA_NAME, COL_DATA_REPL_NUM, GenQueryInp::condInput, freeRErrorContent(), genAllInCollQCond(), LOG_NOTICE, LONG_NAME_LEN, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, rsComm_t::rError, rmKeyVal(), RODS_ZONE_CLIENT_KW, rodsLog(), userInfo_t::rodsZone, rsGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, irods.pypyodbc::status, trySpecificQueryDataObjInCollReCur(), USER__NULL_INPUT_ERR, USER_NAME_CLIENT_KW, and userInfo_t::userName.
Referenced by rsMvCollToTrash(), and syncCollPhyPath().
int trySpecificQueryDataObjInCollReCur | ( | rsComm_t * | rsComm, |
char * | collection, | ||
genQueryOut_t ** | genQueryOut | ||
) |
Definition at line 78 of file collection.cpp.
References specificQueryInp_t::args, GenQueryOut::attriCnt, SqlResult::attriInx, COL_COLL_NAME, COL_D_DATA_ID, COL_D_DATA_PATH, COL_D_RESC_ID, COL_D_RESC_NAME, COL_DATA_NAME, COL_DATA_REPL_NUM, specificQueryInp_t::continueInx, MAX_NAME_LEN, MAX_SQL_ROWS, specificQueryInp_t::maxRows, rsSpecificQuery(), rstrcat(), rstrcpy(), specificQueryInp_t::sql, GenQueryOut::sqlResult, and irods.pypyodbc::status.
Referenced by rsQueryDataObjInCollReCur().