mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
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.
This commit is contained in:
parent
6fc754c2d6
commit
2274d71f94
2 changed files with 10 additions and 11 deletions
|
@ -25099,12 +25099,11 @@ String or G-exp denoting an mcron schedule for the periodic
|
||||||
@command{updatedb} job (@pxref{Guile Syntax,,, mcron, GNU@tie{}mcron}).
|
@command{updatedb} job (@pxref{Guile Syntax,,, mcron, GNU@tie{}mcron}).
|
||||||
|
|
||||||
@item @code{excluded-directories} (default @code{%default-file-database-excluded-directories})
|
@item @code{excluded-directories} (default @code{%default-file-database-excluded-directories})
|
||||||
List of directories to ignore when building the file database. By
|
List of regular expressions of directories to ignore when building the
|
||||||
default, this includes @file{/tmp} and @file{/gnu/store}, which should
|
file database. By default, this includes @file{/tmp} and @file{/gnu/store};
|
||||||
instead be indexed by @command{guix locate} (@pxref{Invoking guix
|
the latter should instead be indexed by @command{guix locate} (@pxref{Invoking
|
||||||
locate}). This list is passed to the @option{--prunepaths} option of
|
guix locate}). This list is passed to the @option{--prunepaths} option of
|
||||||
@command{updatedb} (@pxref{Invoking updatedb,,, find,
|
@command{updatedb} (@pxref{Invoking updatedb,,, find, GNU@tie{}Findutils}).
|
||||||
GNU@tie{}Findutils}).
|
|
||||||
@end table
|
@end table
|
||||||
@end deftp
|
@end deftp
|
||||||
|
|
||||||
|
|
|
@ -290,7 +290,7 @@ (define %default-file-database-update-schedule
|
||||||
"10 23 * * 0")
|
"10 23 * * 0")
|
||||||
|
|
||||||
(define %default-file-database-excluded-directories
|
(define %default-file-database-excluded-directories
|
||||||
;; Directories excluded from the 'locate' database.
|
;; Regexps of directories excluded from the 'locate' database.
|
||||||
(list (%store-prefix)
|
(list (%store-prefix)
|
||||||
"/tmp" "/var/tmp" "/var/cache" ".*/\\.cache"
|
"/tmp" "/var/tmp" "/var/cache" ".*/\\.cache"
|
||||||
"/run/udev"))
|
"/run/udev"))
|
||||||
|
@ -319,10 +319,10 @@ (define-configuration/no-serialization file-database-configuration
|
||||||
@command{updatedb} job (@pxref{Guile Syntax,,, mcron, GNU@tie{}mcron}).")
|
@command{updatedb} job (@pxref{Guile Syntax,,, mcron, GNU@tie{}mcron}).")
|
||||||
(excluded-directories
|
(excluded-directories
|
||||||
(string-list %default-file-database-excluded-directories)
|
(string-list %default-file-database-excluded-directories)
|
||||||
"List of directories to ignore when building the file database. By
|
"List of regular expressions of directories to ignore when building the
|
||||||
default, this includes @file{/tmp} and @file{/gnu/store}, which should instead
|
file database. By default, this includes @file{/tmp} and @file{/gnu/store};
|
||||||
be indexed by @command{guix locate} (@pxref{Invoking guix locate}). This list
|
the latter should instead be indexed by @command{guix locate} (@pxref{Invoking
|
||||||
is passed to the @option{--prunepaths} option of
|
guix locate}). This list is passed to the @option{--prunepaths} option of
|
||||||
@command{updatedb} (@pxref{Invoking updatedb,,, find, GNU@tie{}Findutils})."))
|
@command{updatedb} (@pxref{Invoking updatedb,,, find, GNU@tie{}Findutils})."))
|
||||||
|
|
||||||
(define (file-database-mcron-jobs configuration)
|
(define (file-database-mcron-jobs configuration)
|
||||||
|
|
Loading…
Reference in a new issue