5 #ifndef CVMFS_SYNC_ITEM_H_
6 #define CVMFS_SYNC_ITEM_H_
10 #if !defined(__APPLE__)
11 #include <sys/sysmacros.h>
147 bool enable_mtime_ns)
const = 0;
322 inline void StatUnion(
const bool refresh =
false)
const {
325 virtual void StatScratch(
const bool refresh)
const = 0;
333 bool enable_mtime_ns)
const;
346 :
SyncItem(relative_parent_path, filename, union_engine, entry_type) {
353 #endif // CVMFS_SYNC_ITEM_H_
bool WasType(const SyncItemType expected_type) const
SyncItemType GetGenericFiletype(const EntryStat &stat) const
bool operator==(const SyncItem &other) const
unsigned int GetRdevMinor() const
shash::Any GetContentHash() const
SyncItemType rdonly_type_
bool HasCatalogMarker() const
unsigned int GetRdevMajor() const
virtual catalog::DirectoryEntryBase CreateBasicCatalogDirent(bool enable_mtime_ns) const
const SyncUnion * union_engine_
std::string relative_parent_path_
SyncItemNative(const std::string &relative_parent_path, const std::string &filename, const SyncUnion *union_engine, const SyncItemType entry_type)
bool IsBlockDevice() const
bool IsCharacterDevice() const
assert((mem||(size==0))&&"Out Of Memory")
void SetExternalData(bool val)
void SetDirectIo(bool val)
bool IsGraftMarker() const
SyncItemType GetUnionFiletype() const
bool IsValidGraft() const
bool IsOpaqueDirectory() const
uint64_t GetUnionInode() const
std::map< std::string, SharedPtr< SyncItem > > SyncItemList
void CheckCatalogMarker()
SyncItemType scratch_type_
uint64_t GetRdOnlyInode() const
virtual bool IsType(const SyncItemType expected_type) const
virtual catalog::DirectoryEntryBase CreateBasicCatalogDirent(bool enable_mtime_ns) const =0
bool WasBundleSpec() const
bool HasGraftMarker() const
bool HasContentHash() const
virtual void MakePlaceholderDirectory() const =0
uint64_t GetScratchSize() const
bool IsRegularFile() const
virtual bool IsType(const SyncItemType expected_type) const =0
platform_stat64 GetUnionStat() const
std::string GetUnionPath() const
std::string GetRdOnlyPath() const
void StatRdOnly(const bool refresh=false) const
zlib::Algorithms GetCompressionAlgorithm() const
bool HasCompressionAlgorithm() const
std::string GetScratchPath() const
std::string relative_parent_path() const
void SetCompressionAlgorithm(const zlib::Algorithms &alg)
virtual SyncItemType GetScratchFiletype() const =0
const FileChunkList * GetGraftChunks() const
FileChunkList * graft_chunklist_
bool WasSpecialFile() const
unsigned int GetRdOnlyLinkcount() const
virtual SyncItemType GetScratchFiletype() const
void MarkAsOpaqueDirectory()
bool IsBundleSpec() const
bool has_compression_algorithm_
virtual void StatScratch(const bool refresh) const =0
void SetContentHash(const shash::Any &hash)
static void StatGeneric(const std::string &path, EntryStat *info, const bool refresh)
virtual void MakePlaceholderDirectory() const
std::string GetGraftMarkerPath() const
virtual void StatScratch(const bool refresh) const
virtual IngestionSource * CreateIngestionSource() const =0
virtual IngestionSource * CreateIngestionSource() const
void MarkAsWhiteout(const std::string &actual_filename)
unsigned int GetUnionLinkcount() const
bool graft_marker_present_
std::string filename() const
bool IsExternalData() const
bool WasRegularFile() const
bool IsCatalogMarker() const
SyncItemType GetSyncItemType() const
void StatUnion(const bool refresh=false) const
bool IsSpecialFile() const
bool IsChunkedGraft() const
bool WasDirectory() const
std::string GetRelativePath() const
zlib::Algorithms compression_algorithm_
uint64_t GetRdOnlySize() const
bool HasHardlinks() const
SyncItemType GetRdOnlyFiletype() const