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)  

fileDriver.hpp File Reference
#include <dirent.h>
#include "rods.h"
#include "rcConnect.h"
#include "objInfo.h"
#include "msParam.h"
#include "irods_error.hpp"
#include "irods_first_class_object.hpp"
Include dependency graph for fileDriver.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

irods::error fileCreate (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileOpen (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileRead (rsComm_t *, irods::first_class_object_ptr, void *, int)
 
irods::error fileWrite (rsComm_t *, irods::first_class_object_ptr, void *, int)
 
irods::error fileClose (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileUnlink (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileStat (rsComm_t *, irods::first_class_object_ptr, struct stat *)
 
irods::error fileLseek (rsComm_t *, irods::first_class_object_ptr, long long, int)
 
irods::error fileMkdir (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileChmod (rsComm_t *, irods::first_class_object_ptr, int)
 
irods::error fileRmdir (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileOpendir (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileClosedir (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileReaddir (rsComm_t *, irods::first_class_object_ptr, struct rodsDirent **)
 
irods::error fileRename (rsComm_t *, irods::first_class_object_ptr, const std::string &)
 
irods::error fileGetFsFreeSpace (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileTruncate (rsComm_t *, irods::first_class_object_ptr)
 
irods::error fileStageToCache (rsComm_t *, irods::first_class_object_ptr, const std::string &)
 
irods::error fileSyncToArch (rsComm_t *, irods::first_class_object_ptr, const std::string &)
 
irods::error fileRegistered (rsComm_t *_comm, irods::first_class_object_ptr _object)
 
irods::error fileUnregistered (rsComm_t *_comm, irods::first_class_object_ptr _object)
 
irods::error fileModified (rsComm_t *_comm, irods::first_class_object_ptr _object)
 
irods::error fileNotify (rsComm_t *_comm, irods::first_class_object_ptr _object, const std::string &)
 

Function Documentation

◆ fileChmod()

Definition at line 301 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_CHMOD().

Referenced by _rsFileChmod().

Here is the call graph for this function:

◆ fileClose()

Definition at line 147 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_CLOSE().

Referenced by _rsFileClose(), _rsFileGet(), _rsFilePut(), _rsSubStructFileClose(), _rsSubStructFileGet(), _rsSubStructFilePut(), and fileChksum().

Here is the call graph for this function:

◆ fileClosedir()

Definition at line 392 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_CLOSEDIR().

Referenced by _rsFileClosedir(), _rsFileRmdir(), _rsSubStructFileClosedir(), and chkEmptyDir().

Here is the call graph for this function:

◆ fileCreate()

Definition at line 17 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::log(), irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_CREATE().

Referenced by _rsFileCreate(), _rsSubStructFileCreate(), and _rsSubStructFilePut().

Here is the call graph for this function:

◆ fileGetFsFreeSpace()

irods::error fileGetFsFreeSpace ( rsComm_t ,
irods::first_class_object_ptr   
)

Definition at line 484 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_FREESPACE().

Referenced by _rsFileGetFsFreeSpace().

Here is the call graph for this function:

◆ fileLseek()

irods::error fileLseek ( rsComm_t ,
irods::first_class_object_ptr  ,
long long  ,
int   
)

Definition at line 238 of file fileDriver.cpp.

References irods::error::code(), CODE, irods.pypyodbc::long, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_LSEEK().

Referenced by _rsFileLseek(), and _rsSubStructFileLseek().

Here is the call graph for this function:

◆ fileMkdir()

Definition at line 270 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_MKDIR().

Referenced by _rsFileMkdir(), _rsSubStructFileMkdir(), and mkFileDirR().

Here is the call graph for this function:

◆ fileModified()

irods::error fileModified ( rsComm_t _comm,
irods::first_class_object_ptr  _object 
)

Definition at line 692 of file fileDriver.cpp.

References irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), irods::RESOURCE_OP_MODIFIED(), and SUCCESS.

Referenced by _call_file_modified_for_modification(), _call_file_modified_for_replica(), _rsBulkDataObjReg(), msisync_to_archive(), and regSubfile().

Here is the call graph for this function:

◆ fileNotify()

irods::error fileNotify ( rsComm_t _comm,
irods::first_class_object_ptr  _object,
const std::string &   
)

Definition at line 737 of file fileDriver.cpp.

References irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), irods::RESOURCE_OP_NOTIFY(), and SUCCESS.

Referenced by dataObjOpenForRepl(), msisync_to_archive(), and rsDataObjWrite().

Here is the call graph for this function:

◆ fileOpen()

Definition at line 49 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_OPEN().

Referenced by _rsFileOpen(), _rsSubStructFileGet(), _rsSubStructFileOpen(), _rsSubStructFilePut(), and fileChksum().

Here is the call graph for this function:

◆ fileOpendir()

Definition at line 362 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_OPENDIR().

Referenced by _rsFileOpendir(), _rsFileRmdir(), _rsSubStructFileOpendir(), and chkEmptyDir().

Here is the call graph for this function:

◆ fileRead()

irods::error fileRead ( rsComm_t ,
irods::first_class_object_ptr  ,
void *  ,
int   
)

Definition at line 81 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_READ().

Referenced by _rsFileGet(), _rsFileRead(), _rsSubStructFileGet(), _rsSubStructFileRead(), and fileChksum().

Here is the call graph for this function:

◆ fileReaddir()

irods::error fileReaddir ( rsComm_t ,
irods::first_class_object_ptr  ,
struct rodsDirent **   
)

Definition at line 422 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_READDIR().

Referenced by _rsFileReaddir(), _rsFileRmdir(), _rsSubStructFileReaddir(), and chkEmptyDir().

Here is the call graph for this function:

◆ fileRegistered()

irods::error fileRegistered ( rsComm_t _comm,
irods::first_class_object_ptr  _object 
)

Definition at line 622 of file fileDriver.cpp.

References irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), irods::RESOURCE_OP_REGISTERED(), and SUCCESS.

Referenced by _rsRegDataObj().

Here is the call graph for this function:

◆ fileRename()

irods::error fileRename ( rsComm_t ,
irods::first_class_object_ptr  ,
const std::string &   
)

Definition at line 453 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_RENAME().

Referenced by _rsFileRename(), and _rsSubStructFileRename().

Here is the call graph for this function:

◆ fileRmdir()

Definition at line 332 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_RMDIR().

Referenced by _rsFileCreate(), _rsFileRmdir(), _rsFileStageToCache(), _rsFileSyncToArch(), _rsSubStructFileRmdir(), and chkEmptyDir().

Here is the call graph for this function:

◆ fileStageToCache()

irods::error fileStageToCache ( rsComm_t ,
irods::first_class_object_ptr  ,
const std::string &   
)

Definition at line 544 of file fileDriver.cpp.

References ERROR, irods::log(), irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), irods::RESOURCE_OP_STAGETOCACHE(), SUCCESS, and SYS_INVALID_INPUT_PARAM.

Referenced by _rsFileStageToCache().

Here is the call graph for this function:

◆ fileStat()

irods::error fileStat ( rsComm_t ,
irods::first_class_object_ptr  ,
struct stat *   
)

Definition at line 207 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_STAT().

Referenced by _rsChkNVPathPerm(), _rsFileRmdir(), _rsFileStat(), _rsSubStructFileStat(), chkEmptyDir(), and mkFileDirR().

Here is the call graph for this function:

◆ fileSyncToArch()

irods::error fileSyncToArch ( rsComm_t ,
irods::first_class_object_ptr  ,
const std::string &   
)

Definition at line 583 of file fileDriver.cpp.

References ERROR, irods::log(), irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), irods::RESOURCE_OP_SYNCTOARCH(), SUCCESS, and SYS_INVALID_INPUT_PARAM.

Referenced by _rsFileSyncToArch().

Here is the call graph for this function:

◆ fileTruncate()

Definition at line 514 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_TRUNCATE().

Referenced by _rsFileTruncate(), and _rsSubStructFileTruncate().

Here is the call graph for this function:

◆ fileUnlink()

Definition at line 177 of file fileDriver.cpp.

References irods::error::code(), CODE, irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_UNLINK().

Referenced by _rsFileRmdir(), _rsFileUnlink(), and _rsSubStructFileUnlink().

Here is the call graph for this function:

◆ fileUnregistered()

irods::error fileUnregistered ( rsComm_t _comm,
irods::first_class_object_ptr  _object 
)

Definition at line 657 of file fileDriver.cpp.

References irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), irods::RESOURCE_OP_UNREGISTERED(), and SUCCESS.

Referenced by _rsUnregDataObj().

Here is the call graph for this function:

◆ fileWrite()

irods::error fileWrite ( rsComm_t ,
irods::first_class_object_ptr  ,
void *  ,
int   
)

Definition at line 113 of file fileDriver.cpp.

References irods::error::ok(), PASSMSG, irods::RESOURCE_INTERFACE(), and irods::RESOURCE_OP_WRITE().

Referenced by _rsFilePut(), _rsFileWrite(), _rsSubStructFilePut(), and _rsSubStructFileWrite().

Here is the call graph for this function: