diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-11-26 23:35:24 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-11-27 00:03:03 +0100 |
commit | 7738a72186583afb3bb2e0a866c8aba130372400 (patch) | |
tree | adfc37a8db5beb8b49c5d2b4f2e9c90a7742b007 /config-daemon.ac | |
parent | 434138e2f26b28bb5cc83e62327aae8ed0902475 (diff) | |
download | patches-7738a72186583afb3bb2e0a866c8aba130372400.tar patches-7738a72186583afb3bb2e0a866c8aba130372400.tar.gz |
daemon: GC remove-unused-links phase uses 'statx' when available.
* config-daemon.ac: Check for 'statx'.
* nix/libstore/gc.cc (LocalStore::removeUnusedLinks) [HAVE_STATX]: Use
'statx' instead of 'lstat'.
Diffstat (limited to 'config-daemon.ac')
-rw-r--r-- | config-daemon.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config-daemon.ac b/config-daemon.ac index 848e1e58da..50ead355a8 100644 --- a/config-daemon.ac +++ b/config-daemon.ac @@ -91,8 +91,9 @@ if test "x$guix_build_daemon" = "xyes"; then dnl sched_setaffinity: to improve RPC locality. dnl statvfs: to detect disk-full conditions. dnl strsignal: for error reporting. + dnl statx: fine-grain 'stat' call, new in glibc 2.28. AC_CHECK_FUNCS([lutimes lchown posix_fallocate sched_setaffinity \ - statvfs nanosleep strsignal]) + statvfs nanosleep strsignal statx]) dnl Check whether the store optimiser can optimise symlinks. AC_MSG_CHECKING([whether it is possible to create a link to a symlink]) |