]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
3 years agofix(tracing): Always call MTR_END for each MTR_BEGIN
Joel Rosdahl [Mon, 16 Aug 2021 19:16:18 +0000 (21:16 +0200)] 
fix(tracing): Always call MTR_END for each MTR_BEGIN

3 years agorefactor(tracing): Use MTR_SCOPE
Joel Rosdahl [Mon, 16 Aug 2021 19:15:56 +0000 (21:15 +0200)] 
refactor(tracing): Use MTR_SCOPE

3 years agobump: Upgrade minitrace to latest master
Joel Rosdahl [Mon, 16 Aug 2021 19:05:30 +0000 (21:05 +0200)] 
bump: Upgrade minitrace to latest master

3 years agofeat: Improve statistics summary
Joel Rosdahl [Mon, 16 Aug 2021 06:10:21 +0000 (08:10 +0200)] 
feat: Improve statistics summary

The number of statistics counters has become very large, making the
output “ccache -s” hard to overview.

Improvements:

- The -s/--show-stats option now prints a more condensed overview where
  the counters representing “uncacheable calls” are summed as
  “uncacheable” and “errors” counters. Note: Scripts should use
  --print-stats instead of trying to parse the output of --show-stats.
- Added hit rate for direct/preprocessed hits/misses as well.
- Added a new -v/--verbose option, which makes --show-stats and
  --show-log-stats show more details.

3 years agostyle: Use uppercase literal suffixes
Joel Rosdahl [Sun, 15 Aug 2021 20:06:29 +0000 (22:06 +0200)] 
style: Use uppercase literal suffixes

3 years agofeat: Print statistics IDs instead of descriptions to debug log
Joel Rosdahl [Sun, 15 Aug 2021 19:41:03 +0000 (21:41 +0200)] 
feat: Print statistics IDs instead of descriptions to debug log

This is in preparation for future statistics counters that won’t have
human-readable descriptions. (The statistics IDs are human-readable
enough.)

3 years agorefactor: Return from process_main_options instead of exiting
Joel Rosdahl [Sun, 15 Aug 2021 19:29:40 +0000 (21:29 +0200)] 
refactor: Return from process_main_options instead of exiting

3 years agofix: Don’t print “unrecognized option” twice
Joel Rosdahl [Sun, 15 Aug 2021 19:27:36 +0000 (21:27 +0200)] 
fix: Don’t print “unrecognized option” twice

Fixes an issue introduced in 513c83faaafc3a9848cb4492961104e4f4768247.

3 years agoenhance: Let TextTable::add_row take a vector
Joel Rosdahl [Sun, 15 Aug 2021 18:45:59 +0000 (20:45 +0200)] 
enhance: Let TextTable::add_row take a vector

3 years agoenhance: Add TextTable support for cells spanning several columns
Joel Rosdahl [Sat, 14 Aug 2021 19:44:51 +0000 (21:44 +0200)] 
enhance: Add TextTable support for cells spanning several columns

3 years agorefactor: Simplify TextTable usage
Joel Rosdahl [Wed, 11 Aug 2021 10:38:45 +0000 (12:38 +0200)] 
refactor: Simplify TextTable usage

3 years agoenhance: Add util::TextTable::TextTable(const char*)
Joel Rosdahl [Wed, 11 Aug 2021 10:36:46 +0000 (12:36 +0200)] 
enhance: Add util::TextTable::TextTable(const char*)

3 years agoenhance: Add TextTable support for right-aligned integers
Joel Rosdahl [Wed, 11 Aug 2021 10:29:22 +0000 (12:29 +0200)] 
enhance: Add TextTable support for right-aligned integers

3 years agobuild: Link ws2_32 to third_party instead of ccache_framework (#913)
R. Voggenauer [Sun, 15 Aug 2021 18:32:27 +0000 (20:32 +0200)] 
build: Link ws2_32 to third_party instead of ccache_framework (#913)

3 years agofix(test): Fix typos in trim_dir suite
Joel Rosdahl [Tue, 10 Aug 2021 18:35:11 +0000 (20:35 +0200)] 
fix(test): Fix typos in trim_dir suite

3 years agofeat: Support subsecond mtime/atime for --cleanup and --trim-dir
Joel Rosdahl [Tue, 10 Aug 2021 18:32:43 +0000 (20:32 +0200)] 
feat: Support subsecond mtime/atime for --cleanup and --trim-dir

3 years agoenhance: Detect support for st_atim field in struct stat
Joel Rosdahl [Tue, 10 Aug 2021 18:30:19 +0000 (20:30 +0200)] 
enhance: Detect support for st_atim field in struct stat

3 years agofeat: Rename --directory option to --dir
Joel Rosdahl [Tue, 10 Aug 2021 18:04:39 +0000 (20:04 +0200)] 
feat: Rename --directory option to --dir

Other options use abbreviated forms (e.g. “config” and “max”), so this
makes things more consistent.

3 years agofeat: Add --trim-dir option for usage with secondary storage directories
Joel Rosdahl [Tue, 10 Aug 2021 15:44:30 +0000 (17:44 +0200)] 
feat: Add --trim-dir option for usage with secondary storage directories

3 years agofeat: Make --config-path and --directory affect whole command line
Joel Rosdahl [Tue, 10 Aug 2021 13:32:07 +0000 (15:32 +0200)] 
feat: Make --config-path and --directory affect whole command line

Command line options are processed strictly in order, which means that

    ccache -d dir -s

is not the same as

    ccache -s -d dir

which is not very intuitive. There are also planned features where is
doesn’t make sense to have to put “non-command options” before the
“command options”.

Improve this by processing command line options in two passes: first
non-command options and then command options (still in order).

3 years agorefactor: Move static getopt data to global level
Joel Rosdahl [Tue, 10 Aug 2021 13:21:34 +0000 (15:21 +0200)] 
refactor: Move static getopt data to global level

3 years agodoc: Describe interaction between primary and secondary storage
Joel Rosdahl [Mon, 9 Aug 2021 19:40:38 +0000 (21:40 +0200)] 
doc: Describe interaction between primary and secondary storage

3 years agofeat: Add share-hits attribute for secondary storage
Joel Rosdahl [Mon, 9 Aug 2021 19:18:58 +0000 (21:18 +0200)] 
feat: Add share-hits attribute for secondary storage

With share-hits=false, a secondary storage backend will not share hits
to primary storage.

3 years agofeat: Add reshare config option
Joel Rosdahl [Mon, 9 Aug 2021 18:55:11 +0000 (20:55 +0200)] 
feat: Add reshare config option

Setting reshare (CCACHE_RESHARE) to true make ccache send results to
secondary storage even for primary storage cache hits. The default is
false.

3 years agofeat: Add statistics for forced recaches
Joel Rosdahl [Sun, 8 Aug 2021 16:49:01 +0000 (18:49 +0200)] 
feat: Add statistics for forced recaches

3 years agofeat: Add statistics for primary/secondary hits/miss
Joel Rosdahl [Sun, 8 Aug 2021 17:59:58 +0000 (19:59 +0200)] 
feat: Add statistics for primary/secondary hits/miss

3 years agofeat: Add statistics for direct/preprocessed cache miss
Joel Rosdahl [Sun, 8 Aug 2021 15:35:18 +0000 (17:35 +0200)] 
feat: Add statistics for direct/preprocessed cache miss

3 years agotest: Use machine-parsable statistics IDs in tests
Joel Rosdahl [Sun, 8 Aug 2021 17:28:34 +0000 (19:28 +0200)] 
test: Use machine-parsable statistics IDs in tests

3 years agorefactor(test): Improve duplicate tests in base suite
Joel Rosdahl [Sun, 8 Aug 2021 17:13:16 +0000 (19:13 +0200)] 
refactor(test): Improve duplicate tests in base suite

3 years agofeat: Sort output of --print-stats
Joel Rosdahl [Sun, 8 Aug 2021 17:00:22 +0000 (19:00 +0200)] 
feat: Sort output of --print-stats

3 years agoenhance: Prepare for a ccache invocation having multiple results
Joel Rosdahl [Sun, 8 Aug 2021 19:44:44 +0000 (21:44 +0200)] 
enhance: Prepare for a ccache invocation having multiple results

That is, “result” as in “increased statistics counter”.

4 years agofix: Remove obsolete statistics counter and comment when disabled
Joel Rosdahl [Sun, 8 Aug 2021 12:41:43 +0000 (14:41 +0200)] 
fix: Remove obsolete statistics counter and comment when disabled

4 years agorefactor: Improve handling of statistics updates and expected events
Joel Rosdahl [Sun, 8 Aug 2021 08:40:58 +0000 (10:40 +0200)] 
refactor: Improve handling of statistics updates and expected events

Ccache uses exceptions for both truly exceptional events (such as I/O
error) and non-exceptional events (such as unsupported compiler
arguments). Regardless of the nature of the event, at most one
statistics counter can be incremented.

Improve this by:

- Using nonstd::expected instead of exceptions internally in the main
  code flow. This makes the code easier to reason about.
- Adding support for communicating several statistics counter updates
  both for success and failure code paths. This is in preparation for
  future improvements of statistics related to secondary storage.

4 years agochore: Fix example in dockerfiles/README
Joel Rosdahl [Sun, 8 Aug 2021 06:40:56 +0000 (08:40 +0200)] 
chore: Fix example in dockerfiles/README

4 years agodocs: Use non-legacy markup for block IDs
Joel Rosdahl [Sat, 7 Aug 2021 14:06:55 +0000 (16:06 +0200)] 
docs: Use non-legacy markup for block IDs

4 years agofeat(file-storage): Add support for flat layout
Joel Rosdahl [Sat, 7 Aug 2021 13:43:24 +0000 (15:43 +0200)] 
feat(file-storage): Add support for flat layout

4 years agofeat(http-storage): Add support for subdirs layout, making it default
Joel Rosdahl [Sat, 7 Aug 2021 12:44:21 +0000 (14:44 +0200)] 
feat(http-storage): Add support for subdirs layout, making it default

4 years agoenhance(test): Let http-server create subdirectories as needed
Joel Rosdahl [Sat, 7 Aug 2021 12:42:32 +0000 (14:42 +0200)] 
enhance(test): Let http-server create subdirectories as needed

4 years agofix(test): Remove debug printout and move Bazel layout test
Joel Rosdahl [Sat, 7 Aug 2021 12:42:00 +0000 (14:42 +0200)] 
fix(test): Remove debug printout and move Bazel layout test

4 years agofix: Don’t read let Context read user configuration in unit tests
Joel Rosdahl [Sat, 7 Aug 2021 11:12:56 +0000 (13:12 +0200)] 
fix: Don’t read let Context read user configuration in unit tests

accd21e4 inadvertently made unit tests populate Context::config from the
environment and the user configuration. Fix this by moving code for
reading config, setting of logging, etc. into a separate method only to
be called by non-test code.

As noted by Michael Kruse in #815.

4 years agofeat(storage): Add support for cache sharding on secondary storage (#912)
Joel Rosdahl [Sat, 7 Aug 2021 07:00:17 +0000 (09:00 +0200)] 
feat(storage): Add support for cache sharding on secondary storage (#912)

This adds support for a shards attribute with a comma-separated list of
names for sharding (partitioning) the cache entries using Rendezvous
hashing, typically to spread the cache over a server cluster. When set,
the storage URL must contain an asterisk (*), which will be replaced by
one of the shard names to form a real URL. A shard name can optionally
have an appended weight within parentheses to indicate how much of the
key space should be associated with that shard. A shard with weight w
will contain w/S of the cache, where S is the sum of all shard weights.
A weight could for instance be set to represent the available memory for
a memory cache on a specific server. The default weight is 1.

For example,

    redis://cache-*.example.com|shards=a(3),b(1),c(1.5)

will put 55% (3/5.5) of the cache on redis://cache-a.example.com, 18%
(1/5.5) on redis://cache-b.example.com and 27% (1.5/5.5) on
redis://cache-c.example.com.

4 years agochore: Sort LICENSE.adoc entries
Joel Rosdahl [Thu, 5 Aug 2021 18:37:18 +0000 (20:37 +0200)] 
chore: Sort LICENSE.adoc entries

4 years agochore: Improve AsciiDoc markup of LICENSE.adoc
Joel Rosdahl [Thu, 5 Aug 2021 18:34:58 +0000 (20:34 +0200)] 
chore: Improve AsciiDoc markup of LICENSE.adoc

4 years agoci: Use latest codespell
Joel Rosdahl [Thu, 5 Aug 2021 18:27:33 +0000 (20:27 +0200)] 
ci: Use latest codespell

4 years agochore: Fix typos
Joel Rosdahl [Thu, 5 Aug 2021 18:22:04 +0000 (20:22 +0200)] 
chore: Fix typos

4 years agorefactor: Split httplib into .h and .cpp parts
Joel Rosdahl [Thu, 5 Aug 2021 18:15:59 +0000 (20:15 +0200)] 
refactor: Split httplib into .h and .cpp parts

This improves recompilation speed of
src/storage/secondary/HttpStorage.cpp.

4 years agofix(file-storage): Create CACHEDIR.TAG after subdir
Joel Rosdahl [Wed, 4 Aug 2021 19:51:33 +0000 (21:51 +0200)] 
fix(file-storage): Create CACHEDIR.TAG after subdir

Otherwise creation will fail the first time with an ugly log message.

4 years agorefactor: Use util::parse_double
Joel Rosdahl [Wed, 4 Aug 2021 19:42:08 +0000 (21:42 +0200)] 
refactor: Use util::parse_double

4 years agoenhance(util): Add parse_double function
Joel Rosdahl [Wed, 4 Aug 2021 19:39:08 +0000 (21:39 +0200)] 
enhance(util): Add parse_double function

4 years agochore: Fix typo in comment
Joel Rosdahl [Wed, 4 Aug 2021 19:27:29 +0000 (21:27 +0200)] 
chore: Fix typo in comment

4 years agoenhance(util): Add replace_first function
Joel Rosdahl [Wed, 4 Aug 2021 17:45:22 +0000 (19:45 +0200)] 
enhance(util): Add replace_first function

4 years agodocs: Use italics consistently for references to sections
Joel Rosdahl [Tue, 3 Aug 2021 07:07:48 +0000 (09:07 +0200)] 
docs: Use italics consistently for references to sections

4 years agofeat(storage): Log time taken for secondary storage operations
Joel Rosdahl [Fri, 30 Jul 2021 12:04:36 +0000 (14:04 +0200)] 
feat(storage): Log time taken for secondary storage operations

4 years agofeat(http-storage): Log translation to pseudo-SHA256 key
Joel Rosdahl [Fri, 30 Jul 2021 08:29:24 +0000 (10:29 +0200)] 
feat(http-storage): Log translation to pseudo-SHA256 key

4 years agodocs: Add scheme to link to fonts.googleapis.com (#910)
Orgad Shaneh [Mon, 2 Aug 2021 18:59:30 +0000 (21:59 +0300)] 
docs: Add scheme to link to fonts.googleapis.com (#910)

This makes it possible to view generated HTML files locally using the file scheme.

4 years agodocs: Reflow some paragraphs after #911
Joel Rosdahl [Mon, 2 Aug 2021 18:51:59 +0000 (20:51 +0200)] 
docs: Reflow some paragraphs after #911

4 years agodocs: Fix links to section anchors (#911)
Orgad Shaneh [Mon, 2 Aug 2021 18:33:28 +0000 (21:33 +0300)] 
docs: Fix links to section anchors (#911)

asciidoc uses #_section_header, but github uses #section-header.
Replace all the explicit refs with the section titles, and let
the engine handle it.

4 years agobuild: Only probe for faster linker in dev build mode and on x86_64
Joel Rosdahl [Fri, 30 Jul 2021 18:10:50 +0000 (20:10 +0200)] 
build: Only probe for faster linker in dev build mode and on x86_64

Using Gold or LLD on less common platforms such as MIPS may not be a
good idea (see e.g.
<https://www.sourceware.org/bugzilla/show_bug.cgi?id=22838>), so be
conservative and only probe for a faster linker on platforms that likely
don’t have toolchain bugs. Also, using a faster linker is in practice
only relevant for dev builds.

Fixes #907.

4 years agobuild: Allow overriding CCACHE_DEV_MODE on command line
Joel Rosdahl [Fri, 30 Jul 2021 18:05:44 +0000 (20:05 +0200)] 
build: Allow overriding CCACHE_DEV_MODE on command line

4 years agofix: Disable preprocessor hits for PCHs with Clang again (#909)
Arne Hasselbring [Fri, 30 Jul 2021 18:29:45 +0000 (20:29 +0200)] 
fix: Disable preprocessor hits for PCHs with Clang again (#909)

I added this in 3ec58dbcaa1e7903d59dce4c77baff7bc3783269 as I thought
clang only saves the timestamps of included files, so as long as they
are turned off by -Xclang -fno-pch-timestamp, preprocessed hits should be
possible. However, clang also saves the size and possibly a hash of the
un-preprocessed source file, so preprocessed hits don't make much sense.

As long as only the timestamp of a PCH source file changed, e.g. through
git operations, there should still be direct hits.

4 years agobuild: Improve message when pkg-config can’t find libhiredis
Joel Rosdahl [Fri, 30 Jul 2021 08:19:35 +0000 (10:19 +0200)] 
build: Improve message when pkg-config can’t find libhiredis

pkg_check_modules stops immediately when given the REQUIRED argument so
the nicer error message won’t be reached. Fix this by simply removing
REQUIRED since that will make the configuration step fail in a better
way.

4 years agorefactor: Only include zstd.h in ZstdCompressor.cpp
Joel Rosdahl [Thu, 29 Jul 2021 06:31:32 +0000 (08:31 +0200)] 
refactor: Only include zstd.h in ZstdCompressor.cpp

This avoids exposing zstd internals to those including
compression/ZstdCompressor.h.

4 years agobuild: Remove “_lib” suffix from ccache_lib and third_party_lib
Joel Rosdahl [Wed, 28 Jul 2021 18:15:10 +0000 (20:15 +0200)] 
build: Remove “_lib” suffix from ccache_lib and third_party_lib

This means that libthird_party_lib.a will become libthird_party.a which
removes repetition of “lib”. ccache_lib can’t be renamed to just ccache
since that’s the name of the main binary, so that’s renamed to
ccache_framework.

4 years agofix(storage): Reuse existing backend instances
Joel Rosdahl [Tue, 27 Jul 2021 17:50:26 +0000 (19:50 +0200)] 
fix(storage): Reuse existing backend instances

4 years agodocs: Add references to how-to guides hosted on ccache.dev
Joel Rosdahl [Tue, 27 Jul 2021 13:50:50 +0000 (15:50 +0200)] 
docs: Add references to how-to guides hosted on ccache.dev

4 years agodocs: Enable AsciiDoc admonition icons
Joel Rosdahl [Tue, 27 Jul 2021 13:07:49 +0000 (15:07 +0200)] 
docs: Enable AsciiDoc admonition icons

4 years agodocs: Add styling of AsciiDoc documents similar to the ccache.dev site
Joel Rosdahl [Mon, 26 Jul 2021 19:04:29 +0000 (21:04 +0200)] 
docs: Add styling of AsciiDoc documents similar to the ccache.dev site

4 years agodocs: Add blank lines before headings
Joel Rosdahl [Mon, 26 Jul 2021 19:02:49 +0000 (21:02 +0200)] 
docs: Add blank lines before headings

This makes it consistent for all headings

4 years agodocs(http-storage): Convert note on HTTPS not being implemented to a AsciiDoc note
Joel Rosdahl [Mon, 26 Jul 2021 15:12:25 +0000 (17:12 +0200)] 
docs(http-storage): Convert note on HTTPS not being implemented to a AsciiDoc note

4 years agofeat(http-storage): Add support for the Bazel HTTP caching protocol
Joel Rosdahl [Mon, 26 Jul 2021 15:03:28 +0000 (17:03 +0200)] 
feat(http-storage): Add support for the Bazel HTTP caching protocol

4 years agofix(test): Flush stdout/stderr on http-server termination
Joel Rosdahl [Tue, 27 Jul 2021 07:16:14 +0000 (09:16 +0200)] 
fix(test): Flush stdout/stderr on http-server termination

The log from http-server is lost when the process is killed. Fix this by
flushing explicitly in a signal handler.

4 years agostyle: Format Python code with Black
Joel Rosdahl [Mon, 26 Jul 2021 19:57:09 +0000 (21:57 +0200)] 
style: Format Python code with Black

4 years agobump: Upgrade to BLAKE3 1.0.0
Joel Rosdahl [Mon, 26 Jul 2021 12:59:05 +0000 (14:59 +0200)] 
bump: Upgrade to BLAKE3 1.0.0

4 years agochore: Add hints about using conventional commits for commit messages
Joel Rosdahl [Wed, 28 Jul 2021 10:02:12 +0000 (12:02 +0200)] 
chore: Add hints about using conventional commits for commit messages

4 years agoUse Asciidoctor instead of Asciidoc to render documentation
Joel Rosdahl [Mon, 26 Jul 2021 08:23:25 +0000 (10:23 +0200)] 
Use Asciidoctor instead of Asciidoc to render documentation

Asciidoctor seems to:

- Provide a nice left-hand side table of contents.
- Have nicer looking defaults.
- Be faster.
- Have less (but non-zero) quirks.

4 years agoDon’t use ssize_t
Joel Rosdahl [Sun, 25 Jul 2021 14:20:21 +0000 (16:20 +0200)] 
Don’t use ssize_t

It’s not portable to Windows.

4 years agoAdd Redis support for Windows
Joel Rosdahl [Sat, 24 Jul 2021 20:01:02 +0000 (22:01 +0200)] 
Add Redis support for Windows

4 years agoAdd support for downloading hiredis from Internet
Joel Rosdahl [Sat, 24 Jul 2021 20:00:01 +0000 (22:00 +0200)] 
Add support for downloading hiredis from Internet

4 years agoUse cpp-httplib 0.9.2 (#905)
Gregor Jasny [Sun, 25 Jul 2021 05:08:32 +0000 (07:08 +0200)] 
Use cpp-httplib 0.9.2 (#905)

4 years agoUpdate manual after layout change of compression statistics
Joel Rosdahl [Sat, 24 Jul 2021 11:49:07 +0000 (13:49 +0200)] 
Update manual after layout change of compression statistics

4 years agoDocument that CMake 3.10 now is needed
Joel Rosdahl [Sat, 24 Jul 2021 09:02:06 +0000 (11:02 +0200)] 
Document that CMake 3.10 now is needed

4 years agoUse auto to simplify lambda expressions
Joel Rosdahl [Sat, 24 Jul 2021 08:53:59 +0000 (10:53 +0200)] 
Use auto to simplify lambda expressions

4 years agoDrop support for compiling ccache with buggy GCC 5
Joel Rosdahl [Sat, 24 Jul 2021 08:59:41 +0000 (10:59 +0200)] 
Drop support for compiling ccache with buggy GCC 5

GCC 5 may crash when compiling C++14 generic lambdas:
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69977>

4 years agoUse util::TextTable for compression statistics
Joel Rosdahl [Fri, 23 Jul 2021 12:21:08 +0000 (14:21 +0200)] 
Use util::TextTable for compression statistics

4 years agoAdd TextTable class
Joel Rosdahl [Fri, 23 Jul 2021 11:52:21 +0000 (13:52 +0200)] 
Add TextTable class

4 years agoRefactor main option processing to a separate file
Joel Rosdahl [Fri, 23 Jul 2021 11:26:08 +0000 (13:26 +0200)] 
Refactor main option processing to a separate file

4 years agoSet umask when creating configuration file
Joel Rosdahl [Sat, 24 Jul 2021 04:56:23 +0000 (06:56 +0200)] 
Set umask when creating configuration file

This opens up for not having to initialize Context before calling
Config::set_value_in_file.

4 years agoExplicitly default use_syslog to false for clarity
Joel Rosdahl [Fri, 23 Jul 2021 10:56:34 +0000 (12:56 +0200)] 
Explicitly default use_syslog to false for clarity

4 years agoRefactor printing of compression statistics
Joel Rosdahl [Thu, 22 Jul 2021 18:53:44 +0000 (20:53 +0200)] 
Refactor printing of compression statistics

4 years agoConvert primary storage to a public member of storage::Storage
Joel Rosdahl [Thu, 22 Jul 2021 14:20:01 +0000 (16:20 +0200)] 
Convert primary storage to a public member of storage::Storage

4 years agoMove/split statistics functionality into core and storage::primary
Joel Rosdahl [Thu, 22 Jul 2021 11:06:40 +0000 (13:06 +0200)] 
Move/split statistics functionality into core and storage::primary

- The Counters class has been moved to core::StatisticsCounters.
- Functionality in the Statistics namespace has been split into:
    - core::StatsLog: Knows about “stats log” format.
    - core::Statistics: Knows about properties of statistics fields and
      how to present them.
    - storage::primary::PrimaryStorage: Knows how to store and update
      statistics in the primary storage backend.
    - storage::primary::StatsFile: Knows about the “stats file” format.

4 years agoMove Statistic to core
Joel Rosdahl [Wed, 21 Jul 2021 16:19:04 +0000 (18:19 +0200)] 
Move Statistic to core

4 years agoConvert Sloppiness enum to type-safe class
Joel Rosdahl [Wed, 21 Jul 2021 08:45:01 +0000 (10:45 +0200)] 
Convert Sloppiness enum to type-safe class

4 years agoMove code for cleanup, compressing and similar to storage/primary
Joel Rosdahl [Tue, 20 Jul 2021 11:46:37 +0000 (13:46 +0200)] 
Move code for cleanup, compressing and similar to storage/primary

4 years agoRename storage::CacheEntryWriter to EntryWriter
Joel Rosdahl [Tue, 20 Jul 2021 10:40:06 +0000 (12:40 +0200)] 
Rename storage::CacheEntryWriter to EntryWriter

4 years agoMove compression classes to compression directory/namespace
Joel Rosdahl [Tue, 20 Jul 2021 14:56:15 +0000 (16:56 +0200)] 
Move compression classes to compression directory/namespace

4 years agoConvert nonstd::string_view to std::string using constructor
Joel Rosdahl [Tue, 20 Jul 2021 05:14:46 +0000 (07:14 +0200)] 
Convert nonstd::string_view to std::string using constructor

to_string doesn’t exist in the std::string_view form, so use the
std::string constructor to make a future conversion to newer C++
versions easier.

4 years agoTweak language
Joel Rosdahl [Mon, 19 Jul 2021 19:19:26 +0000 (21:19 +0200)] 
Tweak language

Unix systems use the name “symbolic link” or “symlink”, not “soft link”.

4 years agotest: Use test_failed_internal in inode_cache suite
Joel Rosdahl [Mon, 19 Jul 2021 18:13:01 +0000 (20:13 +0200)] 
test: Use test_failed_internal in inode_cache suite

Using test_failed_internal makes line numbers in reported failures
correct.

4 years agoMove exceptions.hpp to core
Joel Rosdahl [Mon, 19 Jul 2021 11:29:53 +0000 (13:29 +0200)] 
Move exceptions.hpp to core