]>
Commit | Line | Data |
---|---|---|
59b2d47f | 1 | /* |
5b74111a | 2 | * Copyright (C) 1996-2018 The Squid Software Foundation and contributors |
59b2d47f | 3 | * |
bbc27441 AJ |
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. | |
59b2d47f | 7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 47 Store Directory Routines */ |
10 | ||
f7f3304a | 11 | #include "squid.h" |
b9ae18aa | 12 | #include "BlockingFile.h" |
602d9612 | 13 | #include "BlockingIOStrategy.h" |
b6b42084 | 14 | #include "unlinkd.h" |
75072239 | 15 | |
b9ae18aa | 16 | bool |
17 | BlockingIOStrategy::shedLoad() | |
18 | { | |
19 | return false; | |
20 | } | |
59b2d47f | 21 | |
b9ae18aa | 22 | int |
23 | BlockingIOStrategy::load() | |
59b2d47f | 24 | { |
b9ae18aa | 25 | /* Return 999 (99.9%) constant load */ |
26 | return 999; | |
27 | } | |
59b2d47f | 28 | |
b9ae18aa | 29 | DiskFile::Pointer |
30 | BlockingIOStrategy::newFile (char const *path) | |
31 | { | |
32 | return new BlockingFile (path); | |
33 | } | |
59b2d47f | 34 | |
c521ad17 DK |
35 | bool |
36 | BlockingIOStrategy::unlinkdUseful() const | |
37 | { | |
38 | return true; | |
39 | } | |
40 | ||
b9ae18aa | 41 | void |
42 | BlockingIOStrategy::unlinkFile(char const *path) | |
43 | { | |
b9ae18aa | 44 | unlinkdUnlink(path); |
b9ae18aa | 45 | } |
f53969cc | 46 |