UFSStrategy.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_FS_UFS_UFSSTRATEGY_H
10#define SQUID_FS_UFS_UFSSTRATEGY_H
11
12#include "DiskIO/DiskFile.h"
13#include "StoreIOState.h"
14
15class Swapdir;
16class StoreEntry;
17class DiskIOStrategy;
18
19namespace Fs
20{
21namespace Ufs
22{
25{
26public:
28 virtual ~UFSStrategy ();
29 virtual bool shedLoad();
30
31 virtual int load();
32
34 /* UFS specific */
35 virtual RefCount<DiskFile> newFile (char const *path);
38
39 virtual void unlinkFile (char const *);
40 virtual void sync();
41
42 virtual int callback();
43
45 virtual void init();
46
48 virtual void statfs(StoreEntry & sentry)const;
49
52
53protected:
54
55 friend class UFSSwapDir;
56
57private:
58 UFSStrategy(); //disabled
59 UFSStrategy(UFSStrategy const &); //disabled
60 UFSStrategy &operator=(UFSStrategy const &); //disabled
61
62};
63
64} //namespace Ufs
65} //namespace Fs
66
67#endif /* SQUID_FS_UFS_UFSSTRATEGY_H */
68
virtual int callback()
Definition: UFSStrategy.cc:141
virtual int load()
Definition: UFSStrategy.cc:25
StoreIOState::Pointer create(SwapDir *, StoreEntry *, StoreIOState::STIOCB *, void *)
Definition: UFSStrategy.cc:93
virtual void statfs(StoreEntry &sentry) const
Definition: UFSStrategy.cc:159
UFSStrategy(UFSStrategy const &)
virtual void sync()
Definition: UFSStrategy.cc:153
DiskIOStrategy * io
Definition: UFSStrategy.h:51
virtual bool shedLoad()
Definition: UFSStrategy.cc:19
virtual RefCount< DiskFile > newFile(char const *path)
Definition: UFSStrategy.cc:45
StoreIOState::Pointer createState(SwapDir *SD, StoreEntry *e, StoreIOState::STIOCB *callback, void *callback_data) const
Definition: UFSStrategy.cc:39
UFSStrategy & operator=(UFSStrategy const &)
virtual ~UFSStrategy()
Definition: UFSStrategy.cc:33
virtual void unlinkFile(char const *)
Definition: UFSStrategy.cc:51
virtual void init()
Definition: UFSStrategy.cc:147
StoreIOState::Pointer open(SwapDir *, StoreEntry *, StoreIOState::STIOCB *, void *)
Definition: UFSStrategy.cc:57
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
manages a single cache_dir
Definition: Disk.h:22
Definition: Module.h:13

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors