ewmscp
..
|
base class for posixFile reader and writer class with the common stuff like fd, path and xattr handling More...
#include <posixFileCommon.h>
Classes | |
class | attrDataType |
Public Member Functions | |
posixFileIoCommon (const std::string &aPath) | |
void | setXattr (const std::string &name, const std::string &value) override |
std::string | getXattr (const std::string &name) override |
get one extended attribute value More... | |
void | removeXattr (const std::string &name) override |
std::unique_ptr< const genericStat > | getStat () override |
std::unique_ptr< ioHandle::attrDataType > | getAttrData (const outputHandler::base *aOutputHandler) override |
get attributes in the optimal way for setting with aOutputHandler More... | |
![]() | |
ioHandle () | |
virtual | ~ioHandle () noexcept(false) |
virtual bool | parallelizable () const |
tell if this handler is capable of parallel IO. Unsually not the case More... | |
virtual size_t | getBlockSize () const |
virtual void | setBlockSize (size_t newSize) |
virtual std::unique_ptr< acl::list > | getAclData () |
get acls More... | |
Protected Attributes | |
const std::string & | path |
int | fd = -1 |
![]() | |
size_t | blockSize |
in bytes, block size to be used when reading or writing More... | |
Friends | |
class | gpfsIoCommon |
base class for posixFile reader and writer class with the common stuff like fd, path and xattr handling
Definition at line 17 of file posixFileCommon.h.
posixFileIoCommon::posixFileIoCommon | ( | const std::string & | aPath | ) |
Definition at line 110 of file posixFileCommon.cpp.
|
overridevirtual |
get attributes in the optimal way for setting with aOutputHandler
std::system_error | when reading of attributes fails |
Reimplemented from ioHandle.
Definition at line 205 of file posixFileCommon.cpp.
References ioHandle::getAttrData().
|
overridevirtual |
Implements ioHandle.
Definition at line 116 of file posixFileCommon.cpp.
References fd, throwcall::good0(), path, and timerInst.
|
overridevirtual |
get one extended attribute value
std::system_error | if attribute setting fails |
unimplementedActionError | if not implemented (most handlers) |
Reimplemented from ioHandle.
Definition at line 132 of file posixFileCommon.cpp.
References throwcall::badval(), ENOATTR, fd, path, and timerInst.
|
overridevirtual |
Reimplemented from ioHandle.
Definition at line 153 of file posixFileCommon.cpp.
References ENOATTR, fd, throwcall::good0(), path, and timerInst.
|
overridevirtual |
Reimplemented from ioHandle.
Definition at line 122 of file posixFileCommon.cpp.
References fd, throwcall::good0(), path, and timerInst.
|
friend |
Definition at line 18 of file posixFileCommon.h.
|
protected |
Definition at line 21 of file posixFileCommon.h.
Referenced by outputHandler::Gpfs::writerGpfs::doSpecialFdHandling(), gpfsIoCommon::getAclData(), gpfsIoCommon::getAttrData(), getStat(), getXattr(), inputHandler::Gpfs::readerGpfs::readerGpfs(), inputHandler::posixFile::readerPosixFile::readerPosixFile(), gpfsIoCommon::releaseUsedBlocks(), removeXattr(), setXattr(), and outputHandler::posixFile::writerPosixFile::writerPosixFile().
|
protected |
Definition at line 20 of file posixFileCommon.h.
Referenced by outputHandler::Gpfs::writerGpfs::doSpecialFdHandling(), gpfsIoCommon::getAclData(), gpfsIoCommon::getAttrData(), getStat(), getXattr(), gpfsIoCommon::handleParallelUsedBlocks(), inputHandler::Gpfs::readerGpfs::readerGpfs(), inputHandler::posixFile::readerPosixFile::readerPosixFile(), gpfsIoCommon::releaseUsedBlocks(), removeXattr(), setXattr(), and outputHandler::posixFile::writerPosixFile::writerPosixFile().