Squid Web Cache
master
Loading...
Searching...
No Matches
MmappedIOStrategy.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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
/* DEBUG: section 47 Store Directory Routines */
10
11
#include "
squid.h
"
12
#include "
MmappedFile.h
"
13
#include "
MmappedIOStrategy.h
"
14
#include "
unlinkd.h
"
15
16
bool
17
MmappedIOStrategy::shedLoad
()
18
{
19
return
false
;
20
}
21
22
int
23
MmappedIOStrategy::load
()
24
{
25
/* Return 999 (99.9%) constant load */
26
return
999;
27
}
28
29
DiskFile::Pointer
30
MmappedIOStrategy::newFile
(
char
const
*path)
31
{
32
return
new
MmappedFile
(path);
33
}
34
35
bool
36
MmappedIOStrategy::unlinkdUseful
()
const
37
{
38
return
true
;
39
}
40
41
void
42
MmappedIOStrategy::unlinkFile
(
char
const
*path)
43
{
44
unlinkdUnlink
(path);
45
}
46
MmappedFile.h
MmappedIOStrategy.h
MmappedFile
Definition
MmappedFile.h:17
MmappedIOStrategy::shedLoad
bool shedLoad() override
Definition
MmappedIOStrategy.cc:17
MmappedIOStrategy::load
int load() override
Definition
MmappedIOStrategy.cc:23
MmappedIOStrategy::unlinkFile
void unlinkFile(char const *) override
Definition
MmappedIOStrategy.cc:42
MmappedIOStrategy::newFile
RefCount< DiskFile > newFile(char const *path) override
Definition
MmappedIOStrategy.cc:30
MmappedIOStrategy::unlinkdUseful
bool unlinkdUseful() const override
Definition
MmappedIOStrategy.cc:36
RefCount< DiskFile >
squid.h
unlinkdUnlink
void unlinkdUnlink(const char *path)
Definition
unlinkd.cc:41
unlinkd.h
squid
src
DiskIO
Mmapped
MmappedIOStrategy.cc
Generated by
1.9.8