me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/nix/libutil
Ludovic Courtès 7033c7692c
daemon: Account for deleted store files when deduplication is on.
Previously, a store item that is a regular file would not be accounted
for in the 'bytesFreed' value computed by 'deletePath' because its
'st_nlink' count would always be >= 2.  This commit fixes that.

* nix/libutil/util.hh (deletePath): Add optional 'linkThreshold' argument.
* nix/libutil/util.cc (_deletePath): Add 'linkThreshold' argument and
honor it.  Pass it down in recursive call.
(deletePath): Add 'linkThreshold' and honor it.
* nix/libstore/gc.cc (LocalStore::deleteGarbage): Pass 'linkThreshold'
argument to 'deletePath', with a value of 2 when PATH is a store item
and deduplication is on.
2020-01-12 00:19:09 +01:00
..
.gitignore
affinity.cc
affinity.hh
archive.cc daemon: Use unbranded phrases in comments and messages. 2018-12-16 16:28:07 +01:00
archive.hh daemon: Remove "case hack" for nars. 2018-10-02 23:08:30 +02:00
gcrypt-hash.cc
gcrypt-hash.hh
hash.cc
hash.hh
md5.h
serialise.cc
serialise.hh
sha1.h
sha256.h
sha512.h
types.hh
util.cc daemon: Account for deleted store files when deduplication is on. 2020-01-12 00:19:09 +01:00
util.hh daemon: Account for deleted store files when deduplication is on. 2020-01-12 00:19:09 +01:00