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.
![]() ![]() |
Go to the source code of this file.
Functions | |
int | rsDataObjCreate (rsComm_t *rsComm, dataObjInp_t *dataObjInp) |
int | _rsDataObjCreate (rsComm_t *rsComm, dataObjInp_t *dataObjInp) |
int | specCollSubCreate (rsComm_t *rsComm, dataObjInp_t *dataObjInp) |
int | dataCreate (rsComm_t *rsComm, int l1descInx) |
int | l3Create (rsComm_t *rsComm, int l1descInx) |
int | l3CreateByObjInfo (rsComm_t *rsComm, dataObjInp_t *dataObjInp, dataObjInfo_t *dataObjInfo) |
int | _rsDataObjCreateWithResc (rsComm_t *rsComm, dataObjInp_t *dataObjInp, const std::string &_resc_name) |
int | getRescForCreate (rsComm_t *rsComm, dataObjInp_t *dataObjInp, std::string &_resc_name) |
int _rsDataObjCreate | ( | rsComm_t * | rsComm, |
dataObjInp_t * | dataObjInp | ||
) |
Definition at line 310 of file rsDataObjCreate.cpp.
References _rsDataObjCreateWithResc(), LOG_NOTICE, rodsLog(), and irods.pypyodbc::status.
Referenced by rsDataObjCreate().
int _rsDataObjCreateWithResc | ( | rsComm_t * | rsComm, |
dataObjInp_t * | dataObjInp, | ||
const std::string & | _resc_name | ||
) |
Definition at line 377 of file rsDataObjCreate.cpp.
References addKeyVal(), allocL1desc(), irods::error::code(), DataObjInp::condInput, DataObjInfo::condInput, DataObjInp::dataSize, fillL1desc(), irods::hierarchy_parser::first_resc(), freeL1desc(), getFilePathName(), getValByKey(), irods::resource_manager::hier_to_leaf_id(), initDataObjInfoWithInp(), KEY_VALUE_PASSTHROUGH_KW, L1desc, irods::hierarchy_parser::last_resc(), irods::log(), MAX_NAME_LEN, NAME_LEN, NEWLY_CREATED_COPY, NO_OPEN_FLAG_KW, NULL, irods::error::ok(), PASS, PURGE_CACHE_KW, l1desc::purgeCacheFlag, DataObjInfo::replStatus, RESC_HIER_STR_KW, resc_mgr, DataObjInfo::rescHier, DataObjInfo::rescId, DataObjInfo::rescName, rstrcpy(), irods::hierarchy_parser::set_string(), and irods.pypyodbc::status.
Referenced by _rsDataObjCreate(), and createPhyBundleDataObj().
Definition at line 476 of file rsDataObjCreate.cpp.
References l1desc::dataObjInfo, DataObjInfo::filePath, L1desc, l3Create(), l1desc::l3descInx, LOG_NOTICE, rodsLog(), and irods.pypyodbc::status.
Referenced by dataObjOpenForRepl(), getDataObjInfo(), and specCollSubCreate().
int getRescForCreate | ( | rsComm_t * | rsComm, |
dataObjInp_t * | dataObjInp, | ||
std::string & | _resc_name | ||
) |
Definition at line 604 of file rsDataObjCreate.cpp.
References applyRule(), clearKeyVal(), DataObjInp::condInput, RuleExecInfo::condInputData, DataObjInp::dataSize, initReiWithDataObjInp(), irods::log(), LOG_NOTICE, NO_SAVE_REI, NULL, DataObjInp::objPath, irods::error::ok(), DataObjInp::oprType, PASS, REPLICATE_OPR, RuleExecInfo::rescName, rodsLog(), irods::set_default_resource(), setRescQuota(), irods.pypyodbc::status, RuleExecInfo::status, SYS_INVALID_RESC_INPUT, and SYS_RESC_QUOTA_EXCEEDED.
Referenced by _rsBulkDataObjPut(), _rsDataObjRepl(), createEmptyRepl(), and irods::resolve_hier_for_create().
Definition at line 498 of file rsDataObjCreate.cpp.
References Subfile::addr, l1desc::dataObjInfo, irods::get_loc_for_hier_string(), getFileMode(), getStructFileType(), rodsHostAddr_t::hostAddr, L1desc, l3CreateByObjInfo(), irods::log(), MAX_NAME_LEN, Subfile::mode, NAME_LEN, irods::error::ok(), PASSMSG, DataObjInfo::rescHier, rsSubStructFileCreate(), rstrcpy(), DataObjInfo::specColl, Subfile::specColl, Subfile::subFilePath, and DataObjInfo::subPath.
Referenced by dataCreate().
int l3CreateByObjInfo | ( | rsComm_t * | rsComm, |
dataObjInp_t * | dataObjInp, | ||
dataObjInfo_t * | dataObjInfo | ||
) |
Definition at line 533 of file rsDataObjCreate.cpp.
References fileOpenInp_t::addr, clearKeyVal(), fileOpenInp_t::condInput, DataObjInfo::condInput, copyKeyVal(), DISALLOW_PATH_REG, fileCreateOut_t::file_name, fileOpenInp_t::fileName, DataObjInfo::filePath, irods::get_loc_for_hier_string(), getchkPathPerm(), getErrno(), getFileMode(), rodsHostAddr_t::hostAddr, fileOpenInp_t::in_pdmo, DataObjInfo::in_pdmo, irods::log(), MAX_NAME_LEN, fileOpenInp_t::mode, NAME_LEN, NO_CHK_PATH_PERM, NO_CHK_PERM_FLAG, NULL, fileOpenInp_t::objPath, DataObjInfo::objPath, irods::error::ok(), fileOpenInp_t::otherFlags, PASSMSG, PATH_REG_NOT_ALLOWED, fileOpenInp_t::resc_hier_, fileOpenInp_t::resc_name_, DataObjInfo::rescHier, resolveDupFilePath(), rsFileCreate(), and rstrcpy().
Referenced by createEmptyRepl(), and l3Create().
int rsDataObjCreate | ( | rsComm_t * | rsComm, |
dataObjInp_t * | dataObjInp | ||
) |
Definition at line 77 of file rsDataObjCreate.cpp.
References _rsDataObjCreate(), addKeyVal(), allocAndSetL1descForZoneOpr(), irods::error::code(), COLL_OBJ_T, SpecColl::collClass, DataObjInp::condInput, rodsServerHost::conn, irods::CREATE_OPERATION(), CREATE_TYPE, CROSS_ZONE_CREATE_KW, DATA_OBJ_LOCK_AN, DATA_OBJ_UNLOCK_AN, DEST_RESC_NAME_KW, FORCE_FLAG_KW, freeRodsObjStat(), getAndConnRemoteZone(), getValByKey(), has_trailing_path_separator(), HIERARCHY_ERROR, L1desc, LINKED_COLL, LOCK_FD_KW, LOCK_TYPE_KW, l1desc::lockFd, irods::log(), LOG_ERROR, NAME_LEN, NULL, DataObjInp::objPath, rodsObjStat::objType, irods::error::ok(), OPEN_FOR_WRITE_TYPE, OPEN_TYPE_KW, DataObjInp::openFlags, OVERWRITE_WITHOUT_FORCE_FLAG, deploy_schemas_locally::parser, PASS, PASSMSG, rcDataObjCreateAndStat(), REMOTE_CREATE, REMOTE_HOST, rsComm_t::rError, RESC_HIER_STR_KW, irods::resolve_resource_hierarchy(), resolveLinkedPath(), rmKeyVal(), rodsLogAndErrorMsg(), rodsLogError(), rsDataObjOpen(), rsObjStat(), SEL_OBJ_TYPE_KW, irods::server_api_call(), rodsObjStat::specColl, specCollSubCreate(), irods.pypyodbc::status, SYS_COLL_LINK_PATH_ERR, UNKNOWN_OBJ_T, USER_INPUT_PATH_ERR, validate_logical_path(), and irods::WRITE_OPERATION().
Referenced by _rsDataObjOpen(), _rsDataObjPut(), _rsStructFileBundle(), l3DataPutSingleBuf(), msiDataObjCreate(), rsDataObjCopy(), rsDataObjCreateAndStat(), and structFileReg().
int specCollSubCreate | ( | rsComm_t * | rsComm, |
dataObjInp_t * | dataObjInp | ||
) |
Definition at line 327 of file rsDataObjCreate.cpp.
References allocL1desc(), DataObjInp::condInput, dataCreate(), DataObjInp::dataSize, DataObjInfo::filePath, fillL1desc(), freeDataObjInfo(), freeL1desc(), getValByKey(), LOG_ERROR, NEWLY_CREATED_COPY, NO_OPEN_FLAG_KW, NULL, DataObjInp::objPath, DataObjInfo::replStatus, resolvePathInSpecColl(), rodsLog(), irods.pypyodbc::status, SYS_COPY_ALREADY_IN_RESC, SYS_SPEC_COLL_OBJ_NOT_EXIST, and WRITE_COLL_PERM.
Referenced by rsDataObjCreate().