CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
publish::SyncItemDummyDir Class Reference

#include <sync_item_dummy.h>

Inheritance diagram for publish::SyncItemDummyDir:
Collaboration diagram for publish::SyncItemDummyDir:

Public Member Functions

catalog::DirectoryEntryBase CreateBasicCatalogDirent () const
 
SyncItemType GetScratchFiletype () const
 
virtual void MakePlaceholderDirectory () const
 
- Public Member Functions inherited from publish::SyncItem
 SyncItem ()
 
virtual ~SyncItem ()
 
bool IsDirectory () const
 
bool WasDirectory () const
 
bool IsRegularFile () const
 
bool WasRegularFile () const
 
bool IsSymlink () const
 
bool WasSymlink () const
 
bool IsNew () const
 
bool IsTouched () const
 
bool IsCharacterDevice () const
 
bool IsBlockDevice () const
 
bool IsFifo () const
 
bool IsSocket () const
 
bool IsGraftMarker () const
 
bool IsExternalData () const
 
bool IsDirectIo () const
 
bool IsWhiteout () const
 
bool IsCatalogMarker () const
 
bool IsOpaqueDirectory () const
 
bool IsSpecialFile () const
 
bool WasSpecialFile () const
 
bool IsBundleSpec () const
 
bool WasBundleSpec () const
 
unsigned int GetRdevMajor () const
 
unsigned int GetRdevMinor () const
 
bool HasCatalogMarker () const
 
bool HasGraftMarker () const
 
bool HasCompressionAlgorithm () const
 
bool IsValidGraft () const
 
bool IsChunkedGraft () const
 
const FileChunkListGetGraftChunks () const
 
shash::Any GetContentHash () const
 
void SetContentHash (const shash::Any &hash)
 
bool HasContentHash () const
 
void SetExternalData (bool val)
 
void SetDirectIo (bool val)
 
zlib::Algorithms GetCompressionAlgorithm () const
 
void SetCompressionAlgorithm (const zlib::Algorithms &alg)
 
std::string GetRelativePath () const
 
std::string GetRdOnlyPath () const
 
std::string GetUnionPath () const
 
std::string GetScratchPath () const
 
void MarkAsWhiteout (const std::string &actual_filename)
 
void MarkAsOpaqueDirectory ()
 
void MaskHardlink ()
 
bool HasHardlinks () const
 
unsigned int GetRdOnlyLinkcount () const
 
uint64_t GetRdOnlyInode () const
 
unsigned int GetUnionLinkcount () const
 
uint64_t GetUnionInode () const
 
uint64_t GetScratchSize () const
 
uint64_t GetRdOnlySize () const
 
std::string filename () const
 
std::string relative_parent_path () const
 
void SetCatalogMarker ()
 
bool operator== (const SyncItem &other) const
 

Protected Member Functions

 SyncItemDummyDir (const std::string &relative_parent_path, const std::string &filename, const SyncUnion *union_engine, const SyncItemType entry_type)
 
 SyncItemDummyDir (const std::string &relative_parent_path, const std::string &filename, const SyncUnion *union_engine, const SyncItemType entry_type, uid_t uid, gid_t gid)
 
- Protected Member Functions inherited from publish::SyncItemNative
 SyncItemNative (const std::string &relative_parent_path, const std::string &filename, const SyncUnion *union_engine, const SyncItemType entry_type)
 
- Protected Member Functions inherited from publish::SyncItem
 SyncItem (const std::string &relative_parent_path, const std::string &filename, const SyncUnion *union_engine, const SyncItemType entry_type)
 
platform_stat64 GetUnionStat () const
 
SyncItemType GetRdOnlyFiletype () const
 
SyncItemType GetUnionFiletype () const
 
bool WasType (const SyncItemType expected_type) const
 
SyncItemType GetGenericFiletype (const EntryStat &stat) const
 
void CheckMarkerFiles ()
 

Static Private Attributes

static const mode_t kPermision
 

Friends

class SyncUnionTarball
 

Additional Inherited Members

- Static Protected Member Functions inherited from publish::SyncItem
static void StatGeneric (const std::string &path, EntryStat *info, const bool refresh)
 
- Protected Attributes inherited from publish::SyncItem
SyncItemType rdonly_type_
 
EntryStat scratch_stat_
 
ssize_t graft_size_
 
shash::Any content_hash_
 
SyncItemType scratch_type_
 

Detailed Description

Definition at line 69 of file sync_item_dummy.h.

Constructor & Destructor Documentation

publish::SyncItemDummyDir::SyncItemDummyDir ( const std::string &  relative_parent_path,
const std::string &  filename,
const SyncUnion union_engine,
const SyncItemType  entry_type 
)
inlineprotected

Definition at line 78 of file sync_item_dummy.h.

Here is the call graph for this function:

publish::SyncItemDummyDir::SyncItemDummyDir ( const std::string &  relative_parent_path,
const std::string &  filename,
const SyncUnion union_engine,
const SyncItemType  entry_type,
uid_t  uid,
gid_t  gid 
)
inlineprotected

Definition at line 91 of file sync_item_dummy.h.

Here is the call graph for this function:

Member Function Documentation

catalog::DirectoryEntryBase publish::SyncItemDummyDir::CreateBasicCatalogDirent ( ) const
virtual

Generates a DirectoryEntry that can be directly stored into a catalog db. Note: this sets the inode fields to kInvalidInode as well as the link count to 1 if MaskHardlink() has been called before (cf. OverlayFS)

Returns
a DirectoryEntry structure to be written into a catalog

Reimplemented from publish::SyncItemNative.

Definition at line 110 of file sync_item_dummy.h.

Here is the call graph for this function:

SyncItemType publish::SyncItemDummyDir::GetScratchFiletype ( ) const
virtual

Reimplemented from publish::SyncItemNative.

Definition at line 135 of file sync_item_dummy.h.

virtual void publish::SyncItemDummyDir::MakePlaceholderDirectory ( ) const
inlinevirtual

Reimplemented from publish::SyncItemNative.

Definition at line 75 of file sync_item_dummy.h.

Friends And Related Function Documentation

friend class SyncUnionTarball
friend

Definition at line 70 of file sync_item_dummy.h.

Member Data Documentation

const mode_t publish::SyncItemDummyDir::kPermision
staticprivate
Initial value:
= S_IFDIR | S_IRUSR | S_IWUSR | S_IXUSR |
S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH

Definition at line 106 of file sync_item_dummy.h.

Referenced by CreateBasicCatalogDirent(), and SyncItemDummyDir().


The documentation for this class was generated from the following file: