From 2fc9cf03c1f0d5e844115e917f5f5e849aa7cd9b Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 3 Sep 2008 23:06:14 +0000 Subject: added selection availability for aufs / diskd to squid gui --- packages/squid/squid.inc | 5 +++-- packages/squid/squid_cache.xml | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'packages/squid') diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index fa8090f0..6fad6b7e 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -558,7 +558,7 @@ function squid_resync_general() { $settings = $config['installedpackages']['squid']['config'][0]; $conf = "# This file is automatically generated by pfSense\n"; - $conf = "# Do not edit manually!\n"; + $conf = "# Do not edit manually !\n"; $port = ($settings['proxy_port'] ? $settings['proxy_port'] : 3128); $ifaces = ($settings['active_interface'] ? $settings['active_interface'] : 'lan'); @@ -652,6 +652,7 @@ function squid_resync_cache() { $cachedir =($settings['harddisk_cache_location'] ? $settings['harddisk_cache_location'] : '/var/squid/cache'); $disk_cache_size = ($settings['harddisk_cache_size'] ? $settings['harddisk_cache_size'] : 100); + $disk_cache_system = ($settings['harddisk_cache_system'] ? $settings['harddisk_cache_system'] : 'aufs'); $level1 = ($settings['level1_subdirs'] ? $settings['level1_subdirs'] : 16); $memory_cache_size = ($settings['memory_cache_size'] ? $settings['memory_cache_size'] : 8); $max_objsize = ($settings['maximum_object_size'] ? $settings['maximum_object_size'] : 10); @@ -661,7 +662,7 @@ function squid_resync_cache() { $offline_mode = ($settings['enable_offline'] == 'on' ? 'on' : 'off'); $conf = << 100 + + Hard disk cache system + harddisk_cache_system + This specifies the kind of storage system to use. <p> <b> aufs </b> uses POSIX-threads to avoid blocking the main Squid process on disk-I/O. (Formerly known as async-io.) <p> <b> diskd </b> uses a separate process to avoid blocking the main Squid process on disk-I/O. + select + aufs + + + + + Hard disk cache location harddisk_cache_location -- cgit v1.2.3