 |
ewmscp
..
|
Go to the documentation of this file. 1 #ifndef __outputHandlerPosixFile_h__
2 #define __outputHandlerPosixFile_h__
16 std::unique_ptr<ioHandle::attrDataType>
attrData;
25 std::unique_ptr<ioHandle::attrDataType> aAttrData,
26 std::unique_ptr<acl::list> aAclData);
29 std::unique_ptr<ioHandle::attrDataType> aAttrData,
30 std::unique_ptr<acl::list> aAclData,
34 void seek(
size_t position) override;
36 size_t getSize() const override;
58 const std::
string& srcPath,
62 const std::
string& toPath) override;
64 const std::unique_ptr<const
genericStat>& readInitialStat,
65 const std::
string& toPath,
68 const std::
string&
path,
69 uid_t
uid, gid_t
gid) override;
struct stat writeInitialStat
std::unique_ptr< acl::list > aclData
class for asttribute data, abstract base to be implemented for specific handlers
bool renameSimple(const std::string &fromPath, const std::string &toPath) override
void writeBlockP(const block &b) override
generic stat abstraction class Used to abstract the variants of the stat structure.
std::unique_ptr< writer > newTmpWriter(std::string &path, size_t sourceSize, bool noWrite, std::unique_ptr< ioHandle::attrDataType > attrData, std::unique_ptr< acl::list > aclData) override
options::single< int > gid
void doAttributePreservations(const genericStat &readInitialStat) override
void ensureParentDirs(const std::string &path, const std::string &srcPath, inputHandler::base *InputHandler) override
~writerPosixFile() noexcept(false) override
size_t getMaxNameLength(const std::string &dirPath) override
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)
void remove(const std::string &path, copyRequest::stateType &state) override
void writeBlock(const block &b) override
std::unique_ptr< ioHandle::attrDataType > attrData
void seek(size_t position) override
bool parallelizable() const override
tell if this handler is capable of parallel IO. Unsually not the case
data block, used to hold the data that are being copied (or checksummed).
std::unique_ptr< writer > newWriter(const std::string &path, bool mightAppend, size_t sourceSize, size_t readBlockSize, copyRequest::stateType &state, bool noWrite, std::unique_ptr< ioHandle::attrDataType > attrData, std::unique_ptr< acl::list > aclData) override
size_t getSize() const override
options::single< int > uid
void closeAndRemoveBadCopy() override
void createSymlink(const std::vector< char > &target, const std::string &path, uid_t uid, gid_t gid) override
template for factoryClass-derived factories
base class for posixFile reader and writer class with the common stuff like fd, path and xattr handli...
class as base for inputHandler::base::reader and outputHandler::base::writer containing the common pa...
static factoryTemplate< posixFile > factory
base::renameRetvalType rename(const std::string &fromPath, const std::unique_ptr< const genericStat > &readInitialStat, const std::string &toPath, copyRequest::stateType &state) override