diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2023-08-22 11:00:25 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2023-08-22 11:17:53 +0200 |
| commit | 2274d71f94e6973df1ebc312c88b876aaa19588a (patch) | |
| tree | f4aff8c72fad084060f233cb4cc7d7537d5b25a9 /gnu | |
| parent | 6fc754c2d670d49f5a843d4b36729af95cf02d18 (diff) | |
services: file-database: Clarify 'excluded-directories' description.
* gnu/services/admin.scm (file-database-configuration)[excluded-directories]:
Mention that these are regexps.
(%default-file-database-excluded-directories): Likewise.
* doc/guix.texi (File Search Services): Adjust accordingly.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/services/admin.scm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/services/admin.scm b/gnu/services/admin.scm index fa2407ed84b..5cf74c6e4d8 100644 --- a/gnu/services/admin.scm +++ b/gnu/services/admin.scm | |||
| @@ -290,7 +290,7 @@ Old log files are removed or compressed according to the configuration.") | |||
| 290 | "10 23 * * 0") | 290 | "10 23 * * 0") |
| 291 | 291 | ||
| 292 | (define %default-file-database-excluded-directories | 292 | (define %default-file-database-excluded-directories |
| 293 | ;; Directories excluded from the 'locate' database. | 293 | ;; Regexps of directories excluded from the 'locate' database. |
| 294 | (list (%store-prefix) | 294 | (list (%store-prefix) |
| 295 | "/tmp" "/var/tmp" "/var/cache" ".*/\\.cache" | 295 | "/tmp" "/var/tmp" "/var/cache" ".*/\\.cache" |
| 296 | "/run/udev")) | 296 | "/run/udev")) |
| @@ -319,10 +319,10 @@ is taken.") | |||
| 319 | @command{updatedb} job (@pxref{Guile Syntax,,, mcron, GNU@tie{}mcron}).") | 319 | @command{updatedb} job (@pxref{Guile Syntax,,, mcron, GNU@tie{}mcron}).") |
| 320 | (excluded-directories | 320 | (excluded-directories |
| 321 | (string-list %default-file-database-excluded-directories) | 321 | (string-list %default-file-database-excluded-directories) |
| 322 | "List of directories to ignore when building the file database. By | 322 | "List of regular expressions of directories to ignore when building the |
| 323 | default, this includes @file{/tmp} and @file{/gnu/store}, which should instead | 323 | file database. By default, this includes @file{/tmp} and @file{/gnu/store}; |
| 324 | be indexed by @command{guix locate} (@pxref{Invoking guix locate}). This list | 324 | the latter should instead be indexed by @command{guix locate} (@pxref{Invoking |
| 325 | is passed to the @option{--prunepaths} option of | 325 | guix locate}). This list is passed to the @option{--prunepaths} option of |
| 326 | @command{updatedb} (@pxref{Invoking updatedb,,, find, GNU@tie{}Findutils}).")) | 326 | @command{updatedb} (@pxref{Invoking updatedb,,, find, GNU@tie{}Findutils}).")) |
| 327 | 327 | ||
| 328 | (define (file-database-mcron-jobs configuration) | 328 | (define (file-database-mcron-jobs configuration) |
