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)  

scanUtil.cpp File Reference
#include "rodsPath.h"
#include "rodsErrorTable.h"
#include "rodsLog.h"
#include "scanUtil.h"
#include "miscUtil.h"
#include "rcGlobalExtern.h"
#include "rcMisc.h"
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/convenience.hpp>
Include dependency graph for scanUtil.cpp:

Go to the source code of this file.

Functions

int scanObj (rcComm_t *conn, rodsArguments_t *myRodsArgs, rodsPathInp_t *rodsPathInp, const char *hostname)
 
int scanObjDir (rcComm_t *conn, rodsArguments_t *myRodsArgs, const char *inpPath, const char *hostname)
 
int scanObjCol (rcComm_t *conn, rodsArguments_t *myRodsArgs, const char *inpPath)
 
int statPhysFile (rcComm_t *conn, genQueryOut_t *genQueryOut2)
 
int chkObjExist (rcComm_t *conn, const char *inpPath, const char *hostname)
 
int checkIsMount (rcComm_t *conn, const char *inpPath)
 

Function Documentation

◆ checkIsMount()

int checkIsMount ( rcComm_t conn,
const char *  inpPath 
)

Definition at line 290 of file scanUtil.cpp.

References addInxIval(), addInxVal(), CAT_NO_ROWS_FOUND, clearGenQueryInp(), COL_COLL_INFO1, COL_COLL_TYPE, freeGenQueryOut(), SqlResult::len, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, rcGenQuery(), GenQueryOut::rowCnt, GenQueryInp::selectInp, GenQueryInp::sqlCondInp, GenQueryOut::sqlResult, irods.pypyodbc::status, and SqlResult::value.

Referenced by fsckObj(), and scanObj().

Here is the call graph for this function:

◆ chkObjExist()

int chkObjExist ( rcComm_t conn,
const char *  inpPath,
const char *  hostname 
)

Definition at line 254 of file scanUtil.cpp.

References addInxIval(), addInxVal(), AUTO_CLOSE, CAT_NO_ROWS_FOUND, clearGenQueryInp(), COL_D_DATA_ID, COL_D_DATA_PATH, COL_R_LOC, freeGenQueryOut(), MAX_NAME_LEN, GenQueryInp::maxRows, NULL, GenQueryInp::options, rcGenQuery(), GenQueryInp::selectInp, GenQueryInp::sqlCondInp, and irods.pypyodbc::status.

Referenced by scanObjDir().

Here is the call graph for this function:

◆ scanObj()

int scanObj ( rcComm_t conn,
rodsArguments_t myRodsArgs,
rodsPathInp_t rodsPathInp,
const char *  hostname 
)

Definition at line 19 of file scanUtil.cpp.

References checkIsMount(), COLL_OBJ_T, irods::experimental::administration::client::v1::exists(), LOCAL_DIR_T, LOCAL_FILE_T, LOG_ERROR, LONG_NAME_LEN, RodsPathInp::numSrc, RodsPath::objType, RodsPath::outPath, pid_age::p, rodsLog(), scanObjCol(), scanObjDir(), RodsPathInp::srcPath, irods.pypyodbc::status, UNKNOWN_OBJ_T, and USER_INPUT_PATH_ERR.

Here is the call graph for this function:

◆ scanObjCol()

int scanObjCol ( rcComm_t conn,
rodsArguments_t myRodsArgs,
const char *  inpPath 
)

◆ scanObjDir()

int scanObjDir ( rcComm_t conn,
rodsArguments_t myRodsArgs,
const char *  inpPath,
const char *  hostname 
)

Definition at line 66 of file scanUtil.cpp.

References chkObjExist(), LONG_NAME_LEN, rodsArguments_t::recursive, irods.pypyodbc::status, and True.

Referenced by scanObj().

Here is the call graph for this function:

◆ statPhysFile()

int statPhysFile ( rcComm_t conn,
genQueryOut_t genQueryOut2 
)