ewmscp
..
|
#include <outputHandlerPosixFile.h>
Public Member Functions | |
writerPosixFile (const std::string &aPath, bool mightAppend, size_t sourceSize, size_t readBlockSize, copyRequest::stateType &state, bool noWrite, std::unique_ptr< ioHandle::attrDataType > aAttrData, std::unique_ptr< acl::list > aAclData) | |
writerPosixFile (std::string &aPath, bool noWrite, std::unique_ptr< ioHandle::attrDataType > aAttrData, std::unique_ptr< acl::list > aAclData, base &handler) | |
void | closeAndRemoveBadCopy () override |
~writerPosixFile () noexcept(false) override | |
void | seek (size_t position) override |
bool | parallelizable () const override |
tell if this handler is capable of parallel IO. Unsually not the case More... | |
size_t | getSize () const override |
void | writeBlock (const block &b) override |
void | writeBlockP (const block &b) override |
void | doAttributePreservations (const genericStat &readInitialStat) override |
void | sync () override |
![]() | |
writer ()=default | |
virtual | ~writer ()=default |
![]() | |
ioHandle () | |
virtual | ~ioHandle () noexcept(false) |
virtual size_t | getBlockSize () const |
virtual void | setBlockSize (size_t newSize) |
virtual std::unique_ptr< acl::list > | getAclData () |
get acls More... | |
![]() | |
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... | |
Protected Attributes | |
struct stat | writeInitialStat |
std::unique_ptr< ioHandle::attrDataType > | attrData |
std::unique_ptr< acl::list > | aclData |
![]() | |
size_t | blockSize |
in bytes, block size to be used when reading or writing More... | |
![]() | |
const std::string & | path |
int | fd = -1 |
Additional Inherited Members | |
![]() | |
unwindCheck ()=default | |
~unwindCheck ()=default | |
bool | isUnwinding () const |
![]() | |
ioHandle () | |
virtual | ~ioHandle () noexcept(false) |
virtual size_t | getBlockSize () const |
virtual void | setBlockSize (size_t newSize) |
virtual std::unique_ptr< acl::list > | getAclData () |
get acls More... | |
Definition at line 13 of file outputHandlerPosixFile.h.
outputHandler::posixFile::writerPosixFile::writerPosixFile | ( | const std::string & | aPath, |
bool | mightAppend, | ||
size_t | sourceSize, | ||
size_t | readBlockSize, | ||
copyRequest::stateType & | state, | ||
bool | noWrite, | ||
std::unique_ptr< ioHandle::attrDataType > | aAttrData, | ||
std::unique_ptr< acl::list > | aAclData | ||
) |
Definition at line 231 of file outputHandlerPosixFile.cpp.
References copyRequest::append, throwcall::badval(), ioHandle::blockSize, enumAsBitmask< T >::clear(), posixFileIoCommon::fd, throwcall::good0(), posixFileIoCommon::path, outputHandler::slownessThreshold, timerInstTO, and writeInitialStat.
outputHandler::posixFile::writerPosixFile::writerPosixFile | ( | std::string & | aPath, |
bool | noWrite, | ||
std::unique_ptr< ioHandle::attrDataType > | aAttrData, | ||
std::unique_ptr< acl::list > | aAclData, | ||
base & | handler | ||
) |
Definition at line 276 of file outputHandlerPosixFile.cpp.
References throwcall::badval(), ioHandle::blockSize, posixFileIoCommon::fd, throwcall::good0(), posixFileIoCommon::path, outputHandler::base::shortenNameToMax(), outputHandler::slownessThreshold, timerInstTO, and writeInitialStat.
|
overridenoexcept |
Definition at line 323 of file outputHandlerPosixFile.cpp.
References errMsg::debug, errMsg::emit(), throwcall::good0(), outputHandler::slownessThreshold, and timerInstTO.
|
overridevirtual |
Implements outputHandler::base::writer.
Definition at line 307 of file outputHandlerPosixFile.cpp.
References errMsg::debug, errMsg::emit(), and errMsg::err.
|
overridevirtual |
Implements outputHandler::base::writer.
Definition at line 410 of file outputHandlerPosixFile.cpp.
References genericStat::getAtime(), genericStat::getMtime(), gid, throwcall::good0(), genericStat::mode, modeBits, genericStat::ownerGid, genericStat::ownerUid, preserve, timerInst, and uid.
|
overridevirtual |
Reimplemented from outputHandler::base::writer.
Definition at line 354 of file outputHandlerPosixFile.cpp.
|
overridevirtual |
tell if this handler is capable of parallel IO. Unsually not the case
Reimplemented from ioHandle.
Definition at line 351 of file outputHandlerPosixFile.cpp.
|
overridevirtual |
Reimplemented from outputHandler::base::writer.
Definition at line 346 of file outputHandlerPosixFile.cpp.
References throwcall::badval(), and timerInst.
|
overridevirtual |
Implements outputHandler::base::writer.
Definition at line 477 of file outputHandlerPosixFile.cpp.
References throwcall::good0(), and timerInst.
|
overridevirtual |
Implements outputHandler::base::writer.
Definition at line 358 of file outputHandlerPosixFile.cpp.
References throwcall::badval(), block::bufferAt(), throwcall::good0(), block::isHole(), block::size(), timer::instanceUnscoped::stop(), timerInst, throttle::watch::update(), throttle::watch::wait(), and writeRateLimit.
Referenced by outputHandler::Gpfs::writerGpfs::writeBlock().
|
overridevirtual |
Reimplemented from outputHandler::base::writer.
Definition at line 394 of file outputHandlerPosixFile.cpp.
References throwcall::badval(), block::bufferAt(), block::offset(), block::size(), and timerInst.
Referenced by outputHandler::Gpfs::writerGpfs::writeBlockP().
|
protected |
Definition at line 17 of file outputHandlerPosixFile.h.
|
protected |
Definition at line 16 of file outputHandlerPosixFile.h.
|
protected |
Definition at line 15 of file outputHandlerPosixFile.h.
Referenced by writerPosixFile().