mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
file-systems: Prefer low-memory mode of ‘btrfs check’.
* gnu/build/file-systems.scm (check-btrfs-file-system): Add ‘--mode lowmem’ arguments when supported. Reported by Noisytoot on #guix.
This commit is contained in:
parent
50d2421419
commit
e91c9ce32e
1 changed files with 4 additions and 1 deletions
|
@ -336,7 +336,10 @@ (define (check-btrfs-file-system device force? repair)
|
||||||
;; Upstream considers ALL repairs dangerous
|
;; Upstream considers ALL repairs dangerous
|
||||||
;; and will warn the user at run time.
|
;; and will warn the user at run time.
|
||||||
(#t '("--repair"))
|
(#t '("--repair"))
|
||||||
(_ '("--readonly"))) ; a no-op for clarity
|
(_ '("--readonly" ; a no-op for clarity
|
||||||
|
;; A 466G file system with 180G used is
|
||||||
|
;; enough to kill btrfs with 6G of RAM.
|
||||||
|
"--mode" "lowmem")))
|
||||||
,device)))
|
,device)))
|
||||||
(0 'pass)
|
(0 'pass)
|
||||||
(_ 'fatal-error))
|
(_ 'fatal-error))
|
||||||
|
|
Loading…
Reference in a new issue