7 #ifndef CVMFS_CACHE_TIERED_H_
8 #define CVMFS_CACHE_TIERED_H_
13 #include "gtest/gtest_prod.h"
45 virtual int Open(
const LabeledObject &
object);
48 virtual int64_t
Pread(
int fd,
void *buf, uint64_t
size, uint64_t offset)
56 virtual void CtrlTxn(
const Label &label,
const int flags,
void *txn);
57 virtual int64_t
Write(
const void *buf, uint64_t
size,
void *txn);
58 virtual int Reset(
void *txn);
91 #endif // CVMFS_CACHE_TIERED_H_
virtual CacheManagerIds id()
const manifest::Manifest * manifest() const
virtual int64_t GetSize(int fd)=0
virtual int AbortTxn(void *txn)
virtual int OpenFromTxn(void *txn)
virtual int64_t Pread(int fd, void *buf, uint64_t size, uint64_t offset)
FRIEND_TEST(T_MountPoint, TieredCacheMgr)
virtual bool DoFreeState(void *data)
virtual void * DoSaveState()
virtual std::string Describe()
TieredCacheManager(CacheManager *upper_cache, CacheManager *lower_cache)
virtual int Reset(void *txn)
static CacheManager * Create(CacheManager *upper_cache, CacheManager *lower_cache)
virtual uint32_t SizeOfTxn()
virtual int Open(const LabeledObject &object)
virtual int OpenFromTxn(void *txn)=0
virtual int64_t GetSize(int fd)
virtual int CommitTxn(void *txn)
virtual void CtrlTxn(const Label &label, const int flags, void *txn)
virtual int DoRestoreState(void *data)
virtual int Close(int fd)=0
virtual int64_t Write(const void *buf, uint64_t size, void *txn)
virtual int Close(int fd)
QuotaManager * quota_mgr()
virtual int Readahead(int fd)
static const unsigned kCopyBufferSize
virtual int StartTxn(const shash::Any &id, uint64_t size, void *txn)
QuotaManager * quota_mgr_
virtual uint32_t SizeOfTxn()=0
virtual int Dup(int fd)=0
virtual bool AcquireQuotaManager(QuotaManager *quota_mgr)
virtual int Readahead(int fd)=0
virtual manifest::Breadcrumb LoadBreadcrumb(const std::string &fqrn)
virtual bool AcquireQuotaManager(QuotaManager *quota_mgr)=0
virtual ~TieredCacheManager()
virtual int64_t Pread(int fd, void *buf, uint64_t size, uint64_t offset)=0
virtual bool StoreBreadcrumb(const manifest::Manifest &manifest)