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 <sys/time.h>
#include "rodsPath.h"
#include "rodsErrorTable.h"
#include "rodsLog.h"
#include "miscUtil.h"
#include "trimUtil.h"
#include "rcGlobalExtern.h"
Go to the source code of this file.
Functions | |
int | trimUtil (rcComm_t *conn, rodsEnv *myRodsEnv, rodsArguments_t *myRodsArgs, rodsPathInp_t *rodsPathInp) |
int | trimDataObjUtil (rcComm_t *conn, char *srcPath, rodsArguments_t *rodsArgs, dataObjInp_t *dataObjInp) |
int | initCondForTrim (rodsArguments_t *rodsArgs, dataObjInp_t *dataObjInp) |
int | trimCollUtil (rcComm_t *conn, char *srcColl, rodsEnv *myRodsEnv, rodsArguments_t *rodsArgs, dataObjInp_t *dataObjInp) |
Variables | |
rodsLong_t | TotalSizeTrimmed = 0 |
int | TotalTrimmed = 0 |
int initCondForTrim | ( | rodsArguments_t * | rodsArgs, |
dataObjInp_t * | dataObjInp | ||
) |
Definition at line 123 of file trimUtil.cpp.
References addKeyVal(), rodsArguments_t::admin, ADMIN_KW, rodsArguments_t::age, AGE_KW, rodsArguments_t::agevalue, DataObjInp::condInput, COPIES_KW, rodsArguments_t::dryrun, DRYRUN_KW, LOG_ERROR, NAME_LEN, NULL, rodsArguments_t::number, rodsArguments_t::numberValue, DataObjInp::oprType, REPL_NUM_KW, rodsArguments_t::replNum, rodsArguments_t::replNumValue, RESC_NAME_KW, rodsLog(), rodsArguments_t::srcResc, rodsArguments_t::srcRescString, True, rodsArguments_t::unmount, UNREG_OPR, and USER__NULL_INPUT_ERR.
Referenced by trimUtil().
int trimCollUtil | ( | rcComm_t * | conn, |
char * | srcColl, | ||
rodsEnv * | myRodsEnv, | ||
rodsArguments_t * | rodsArgs, | ||
dataObjInp_t * | dataObjInp | ||
) |
Definition at line 176 of file trimUtil.cpp.
References CAT_NO_ROWS_FOUND, COLL_OBJ_T, SpecColl::collClass, CollEnt::collName, DATA_OBJ_T, CollEnt::dataName, LINKED_COLL, LOG_ERROR, MAX_NAME_LEN, NO_SPEC_COLL, NULL, CollEnt::objType, rclCloseCollection(), rclOpenCollection(), rclReadCollection(), rodsArguments_t::recursive, rodsLog(), rodsLogError(), collHandle_t::rodsObjStat, DataObjInp::specColl, rodsObjStat::specColl, CollEnt::specColl, irods.pypyodbc::status, trimDataObjUtil(), True, USER__NULL_INPUT_ERR, USER_INPUT_OPTION_ERR, and rodsArguments_t::verbose.
Referenced by trimUtil().
int trimDataObjUtil | ( | rcComm_t * | conn, |
char * | srcPath, | ||
rodsArguments_t * | rodsArgs, | ||
dataObjInp_t * | dataObjInp | ||
) |
Definition at line 75 of file trimUtil.cpp.
References DATA_OBJ_T, INVALID_OBJECT_TYPE, LOG_ERROR, MAX_NAME_LEN, NULL, DataObjInp::objPath, rodsObjStat::objSize, rcDataObjTrim(), rcObjStat(), rodsLog(), rstrcpy(), splitPathByKey(), irods.pypyodbc::status, TotalSizeTrimmed, TotalTrimmed, True, USER__NULL_INPUT_ERR, and rodsArguments_t::verbose.
Referenced by trimCollUtil(), and trimUtil().
int trimUtil | ( | rcComm_t * | conn, |
rodsEnv * | myRodsEnv, | ||
rodsArguments_t * | myRodsArgs, | ||
rodsPathInp_t * | rodsPathInp | ||
) |
Definition at line 17 of file trimUtil.cpp.
References addKeyVal(), CAT_NO_ROWS_FOUND, COLL_OBJ_T, DataObjInp::condInput, DATA_OBJ_T, rodsArguments_t::dryrun, getRodsObjType(), initCondForTrim(), LOG_ERROR, NOT_EXIST_ST, NULL, RodsPathInp::numSrc, RodsPath::objState, RodsPath::objType, RodsPath::outPath, rmKeyVal(), rodsLog(), rodsLogError(), RodsPathInp::srcPath, irods.pypyodbc::status, TotalSizeTrimmed, TotalTrimmed, TRANSLATED_PATH_KW, trimCollUtil(), trimDataObjUtil(), True, UNKNOWN_OBJ_T, USER__NULL_INPUT_ERR, and USER_INPUT_PATH_ERR.
rodsLong_t TotalSizeTrimmed = 0 |
Definition at line 13 of file trimUtil.cpp.
Referenced by trimDataObjUtil(), and trimUtil().
int TotalTrimmed = 0 |
Definition at line 14 of file trimUtil.cpp.
Referenced by trimDataObjUtil(), and trimUtil().