|
ewmscp
..
|
base class for daosFs reader and writer class with the common stuff like fd, path and xattr handling More...
#include <daosFsCommon.h>
Classes | |
| class | attrDataType |
Public Member Functions | |
| daosFsIoCommon (const std::string &aPath, daosFsCommon &aHandler) | |
| 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... | |
Public Member Functions inherited from ioHandle | |
| 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 |
| dfs_obj_t * | obj |
| daosFsCommon & | handler |
Protected Attributes inherited from ioHandle | |
| size_t | blockSize |
| in bytes, block size to be used when reading or writing More... | |
base class for daosFs reader and writer class with the common stuff like fd, path and xattr handling
Definition at line 50 of file daosFsCommon.h.
| daosFsIoCommon::daosFsIoCommon | ( | const std::string & | aPath, |
| daosFsCommon & | aHandler | ||
| ) |
Definition at line 115 of file daosFsCommon.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 184 of file daosFsCommon.cpp.
|
overridevirtual |
Implements ioHandle.
Definition at line 123 of file daosFsCommon.cpp.
References daosFsCommon::dfs, throwcall::good0(), handler, obj, 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 135 of file daosFsCommon.cpp.
References throwcall::badval(), daosFsCommon::dfs, ENOATTR, handler, obj, path, and timerInst.
Referenced by daosFsIoCommon::attrDataType::fill().
|
overridevirtual |
Reimplemented from ioHandle.
Definition at line 151 of file daosFsCommon.cpp.
References daosFsCommon::dfs, ENOATTR, throwcall::good0(), handler, obj, path, and timerInst.
|
overridevirtual |
Reimplemented from ioHandle.
Definition at line 129 of file daosFsCommon.cpp.
References daosFsCommon::dfs, throwcall::good0(), handler, obj, path, and timerInst.
|
protected |
Definition at line 54 of file daosFsCommon.h.
Referenced by daosFsIoCommon::attrDataType::fill(), getStat(), getXattr(), inputHandler::daosFs::readerDaosFs::readerDaosFs(), removeXattr(), and setXattr().
|
protected |
Definition at line 53 of file daosFsCommon.h.
Referenced by daosFsIoCommon::attrDataType::fill(), getStat(), getXattr(), inputHandler::daosFs::readerDaosFs::readerDaosFs(), removeXattr(), setXattr(), and outputHandler::daosFs::writerDaosFs::writerDaosFs().
|
protected |
Definition at line 52 of file daosFsCommon.h.
Referenced by daosFsIoCommon::attrDataType::fill(), getStat(), getXattr(), inputHandler::daosFs::readerDaosFs::readerDaosFs(), removeXattr(), setXattr(), and outputHandler::daosFs::writerDaosFs::writerDaosFs().
1.8.17