squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
fs
Module.cc
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
#include "
squid.h
"
10
#include "
Module.h
"
11
#if defined(HAVE_FS_UFS) || defined(HAVE_FS_AUFS) || defined(HAVE_FS_DISKD)
12
#include "
fs/ufs/StoreFSufs.h
"
13
#include "
fs/ufs/UFSSwapDir.h
"
14
#endif
15
16
#if HAVE_FS_UFS
17
static
Fs::Ufs::StoreFSufs<Fs::Ufs::UFSSwapDir>
*UfsInstance;
18
#endif
19
20
#if HAVE_FS_AUFS
21
static
Fs::Ufs::StoreFSufs<Fs::Ufs::UFSSwapDir>
*AufsInstance;
22
#endif
23
24
#if HAVE_FS_DISKD
25
static
Fs::Ufs::StoreFSufs<Fs::Ufs::UFSSwapDir>
*DiskdInstance;
26
#endif
27
28
#if HAVE_FS_ROCK
29
#include "
fs/rock/RockStoreFileSystem.h
"
30
static
Rock::StoreFileSystem
*RockInstance =
nullptr
;
31
#endif
32
33
void
Fs::Init
()
34
{
35
36
#if HAVE_FS_UFS
37
UfsInstance =
new
Fs::Ufs::StoreFSufs<Fs::Ufs::UFSSwapDir>
(
"Blocking"
,
"ufs"
);
38
#endif
39
40
#if HAVE_FS_AUFS
41
AufsInstance =
new
Fs::Ufs::StoreFSufs<Fs::Ufs::UFSSwapDir>
(
"DiskThreads"
,
"aufs"
);;
42
#endif
43
44
#if HAVE_FS_DISKD
45
DiskdInstance =
new
Fs::Ufs::StoreFSufs<Fs::Ufs::UFSSwapDir>
(
"DiskDaemon"
,
"diskd"
);;
46
#endif
47
48
#if HAVE_FS_ROCK
49
RockInstance =
new
Rock::StoreFileSystem
();
50
#endif
51
52
}
53
Module.h
RockStoreFileSystem.h
StoreFSufs.h
UFSSwapDir.h
Fs::Ufs::StoreFSufs
Definition:
StoreFSufs.h:35
Rock::StoreFileSystem
,
Definition:
RockStoreFileSystem.h:20
Fs::Init
void Init()
Definition:
Module.cc:33
squid.h
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
il
...
full list
FTP Package Archive