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)  

lsUtil.cpp File Reference
#include "rodsPath.h"
#include "rodsErrorTable.h"
#include "rodsLog.h"
#include "lsUtil.h"
#include "miscUtil.h"
#include "rcGlobalExtern.h"
#include "filesystem.hpp"
#include "irods_query.hpp"
#include <boost/format.hpp>
Include dependency graph for lsUtil.cpp:

Go to the source code of this file.

Functions

int lsUtil (rcComm_t *conn, rodsEnv *myRodsEnv, rodsArguments_t *myRodsArgs, rodsPathInp_t *rodsPathInp)
 
int lsDataObjUtil (rcComm_t *conn, rodsPath_t *srcPath, rodsArguments_t *rodsArgs, genQueryInp_t *genQueryInp)
 
int printLsStrShort (char *srcPath)
 
int lsDataObjUtilLong (rcComm_t *conn, char *srcPath, rodsArguments_t *rodsArgs, genQueryInp_t *genQueryInp)
 
int printLsLong (rcComm_t *conn, rodsArguments_t *rodsArgs, genQueryOut_t *genQueryOut)
 
int lsSpecDataObjUtilLong (rodsPath_t *srcPath, rodsArguments_t *rodsArgs)
 
int printLsShort (rcComm_t *conn, rodsArguments_t *rodsArgs, genQueryOut_t *genQueryOut)
 
int initCondForLs (genQueryInp_t *genQueryInp)
 
int lsCollUtil (rcComm_t *conn, rodsPath_t *srcPath, rodsEnv *myRodsEnv, rodsArguments_t *rodsArgs)
 
int printDataCollEnt (collEnt_t *collEnt, int flags)
 
int printDataCollEntLong (collEnt_t *collEnt, int flags)
 
int printCollCollEnt (collEnt_t *collEnt, int flags)
 
int printSpecLsLong (char *objPath, char *ownerName, char *objSize, char *modifyTime, specColl_t *specColl, rodsArguments_t *rodsArgs)
 
int printDataAcl (rcComm_t *conn, char *dataId)
 
int printCollAcl (rcComm_t *conn, char *collName)
 
int printCollInheritance (rcComm_t *conn, char *collName)
 
void printCollOrDir (char *myName, objType_t myType, rodsArguments_t *rodsArgs, specColl_t *specColl)
 
int lsSubfilesInBundle (rcComm_t *conn, char *srcPath)
 

Variables

char zoneHint [(1024+64)]
 

Function Documentation

◆ initCondForLs()

int initCondForLs ( genQueryInp_t genQueryInp)

Definition at line 372 of file lsUtil.cpp.

References LOG_ERROR, NULL, rodsLog(), and USER__NULL_INPUT_ERR.

Referenced by lsUtil().

Here is the call graph for this function:

◆ lsCollUtil()

◆ lsDataObjUtil()

int lsDataObjUtil ( rcComm_t conn,
rodsPath_t srcPath,
rodsArguments_t rodsArgs,
genQueryInp_t genQueryInp 
)

◆ lsDataObjUtilLong()

int lsDataObjUtilLong ( rcComm_t conn,
char *  srcPath,
rodsArguments_t rodsArgs,
genQueryInp_t genQueryInp 
)

Definition at line 139 of file lsUtil.cpp.

References addInxVal(), CAT_NO_ROWS_FOUND, clearInxVal(), COL_COLL_NAME, COL_DATA_NAME, LOG_ERROR, MAX_NAME_LEN, MAX_SQL_ROWS, GenQueryInp::maxRows, NULL, printLsLong(), rcGenQuery(), rodsLog(), rodsLogError(), setQueryFlag(), setQueryInpForData(), splitPathByKey(), GenQueryInp::sqlCondInp, and irods.pypyodbc::status.

Referenced by lsDataObjUtil().

Here is the call graph for this function:

◆ lsSpecDataObjUtilLong()

int lsSpecDataObjUtilLong ( rodsPath_t srcPath,
rodsArguments_t rodsArgs 
)

Definition at line 320 of file lsUtil.cpp.

References rodsObjStat::modifyTime, NAME_LEN, rodsObjStat::objSize, RodsPath::outPath, rodsObjStat::ownerName, printSpecLsLong(), RodsPath::rodsObjStat, rodsObjStat::specColl, and irods.pypyodbc::status.

Referenced by lsDataObjUtil().

Here is the call graph for this function:

◆ lsSubfilesInBundle()

◆ lsUtil()

◆ printCollAcl()

int printCollAcl ( rcComm_t conn,
char *  collName 
)

Definition at line 626 of file lsUtil.cpp.

References COL_COLL_ACCESS_NAME, COL_COLL_USER_NAME, COL_COLL_USER_ZONE, irods.pyparsing::empty, freeGenQueryOut(), getSqlResultByInx(), SqlResult::len, LOG_ERROR, NULL, queryCollAcl(), queryCollAclSpecific(), rodsLog(), GenQueryOut::rowCnt, GenQueryOut::sqlResult, irods.pypyodbc::status, UNMATCHED_KEY_OR_INDEX, SqlResult::value, and zoneHint.

Referenced by lsCollUtil().

Here is the call graph for this function:

◆ printCollCollEnt()

int printCollCollEnt ( collEnt_t collEnt,
int  flags 
)

Definition at line 516 of file lsUtil.cpp.

References SpecColl::cacheDir, SpecColl::cacheDirty, SpecColl::collClass, CollEnt::collName, getSpecCollTypeStr(), LINKED_COLL, LONG_METADATA_FG, MOUNTED_COLL, NAME_LEN, NO_SPEC_COLL, SpecColl::objPath, SpecColl::phyPath, SpecColl::rescHier, CollEnt::specColl, and VERY_LONG_METADATA_FG.

Referenced by lsCollUtil().

Here is the call graph for this function:

◆ printCollInheritance()

int printCollInheritance ( rcComm_t conn,
char *  collName 
)

Definition at line 710 of file lsUtil.cpp.

References COL_COLL_INHERITANCE, freeGenQueryOut(), getSqlResultByInx(), LOG_ERROR, NULL, queryCollInheritance(), rodsLog(), irods.pypyodbc::status, UNMATCHED_KEY_OR_INDEX, and SqlResult::value.

Referenced by lsCollUtil().

Here is the call graph for this function:

◆ printCollOrDir()

void printCollOrDir ( char *  myName,
objType_t  myType,
rodsArguments_t rodsArgs,
specColl_t specColl 
)

Definition at line 745 of file lsUtil.cpp.

References COLL_OBJ_T, False, getSpecCollTypeStr(), NAME_LEN, NULL, irods.pypyodbc::status, and rodsArguments_t::verbose.

Referenced by getCollUtil().

Here is the call graph for this function:

◆ printDataAcl()

int printDataAcl ( rcComm_t conn,
char *  dataId 
)

Definition at line 576 of file lsUtil.cpp.

References COL_DATA_ACCESS_NAME, COL_USER_NAME, COL_USER_ZONE, freeGenQueryOut(), getSqlResultByInx(), SqlResult::len, LOG_ERROR, NULL, queryDataObjAcl(), rodsLog(), GenQueryOut::rowCnt, irods.pypyodbc::status, UNMATCHED_KEY_OR_INDEX, SqlResult::value, and zoneHint.

Referenced by lsCollUtil(), lsDataObjUtil(), printLsLong(), and printLsShort().

Here is the call graph for this function:

◆ printDataCollEnt()

int printDataCollEnt ( collEnt_t collEnt,
int  flags 
)

Definition at line 469 of file lsUtil.cpp.

References CollEnt::dataName, LONG_METADATA_FG, printDataCollEntLong(), printLsStrShort(), and VERY_LONG_METADATA_FG.

Referenced by lsCollUtil().

Here is the call graph for this function:

◆ printDataCollEntLong()

int printDataCollEntLong ( collEnt_t collEnt,
int  flags 
)

◆ printLsLong()

◆ printLsShort()

int printLsShort ( rcComm_t conn,
rodsArguments_t rodsArgs,
genQueryOut_t genQueryOut 
)

Definition at line 335 of file lsUtil.cpp.

References rodsArguments_t::accessControl, COL_D_DATA_ID, COL_DATA_NAME, getSqlResultByInx(), SqlResult::len, LOG_ERROR, NULL, printDataAcl(), printLsStrShort(), rodsLog(), GenQueryOut::rowCnt, True, UNMATCHED_KEY_OR_INDEX, USER__NULL_INPUT_ERR, and SqlResult::value.

Here is the call graph for this function:

◆ printLsStrShort()

int printLsStrShort ( char *  srcPath)

Definition at line 133 of file lsUtil.cpp.

Referenced by lsDataObjUtil(), printDataCollEnt(), and printLsShort().

◆ printSpecLsLong()

int printSpecLsLong ( char *  objPath,
char *  ownerName,
char *  objSize,
char *  modifyTime,
specColl_t specColl,
rodsArguments_t rodsArgs 
)

Definition at line 554 of file lsUtil.cpp.

References DATA_OBJ_T, CollEnt::dataName, CollEnt::dataSize, CollEnt::modifyTime, CollEnt::objType, CollEnt::ownerName, printDataCollEntLong(), CollEnt::resc_hier, SpecColl::rescHier, CollEnt::resource, SpecColl::resource, setQueryFlag(), and CollEnt::specColl.

Referenced by lsSpecDataObjUtilLong().

Here is the call graph for this function:

Variable Documentation

◆ zoneHint