diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2024-07-10 15:20:11 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 19:06:38 +0200 |
| commit | 98545ea11558cf6c230dfaebdd0af2acd50e0f43 (patch) | |
| tree | 1f5fdd50b5ce81692f0195733a516c078bef71fd /gnu/installer/parted.scm | |
| parent | fa70c141552c76cf4dc9666f577bf6b471fa0d50 (diff) | |
installer: Create ext4 file systems with ‘-O large_dir’.
* gnu/installer/parted.scm (create-ext4-file-system): Pass
‘-O large_dir’ to ‘mkfs.ext4’.
Change-Id: Ie34039ed03f273505e7f7fb5c3241120e3395ba2
Diffstat (limited to 'gnu/installer/parted.scm')
| -rw-r--r-- | gnu/installer/parted.scm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/installer/parted.scm b/gnu/installer/parted.scm index 51fa7cf9d9c..dbdec1bba82 100644 --- a/gnu/installer/parted.scm +++ b/gnu/installer/parted.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2018, 2019 Mathieu Othacehe <m.othacehe@gmail.com> | 2 | ;;; Copyright © 2018, 2019 Mathieu Othacehe <m.othacehe@gmail.com> |
| 3 | ;;; Copyright © 2019, 2020, 2022 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2019-2020, 2022, 2024 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | ;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | ;;; Copyright © 2022 Josselin Poiret <dev@jpoiret.xyz> | 5 | ;;; Copyright © 2022 Josselin Poiret <dev@jpoiret.xyz> |
| 6 | ;;; | 6 | ;;; |
| @@ -1187,7 +1187,13 @@ list and return the updated list." | |||
| 1187 | 1187 | ||
| 1188 | (define (create-ext4-file-system partition) | 1188 | (define (create-ext4-file-system partition) |
| 1189 | "Create an ext4 file-system for PARTITION file-name." | 1189 | "Create an ext4 file-system for PARTITION file-name." |
| 1190 | ((run-command-in-installer) "mkfs.ext4" "-F" partition)) | 1190 | ;; Enable the 'large_dir' feature so users can have a store of several TiBs. |
| 1191 | ;; Failing to do that, the directory index (enabled by 'dir_index') can fill | ||
| 1192 | ;; up and adding new files would fail with ENOSPC despite there being plenty | ||
| 1193 | ;; of free space and inodes: | ||
| 1194 | ;; <https://blog.merovius.de/posts/2013-10-20-ext4-mysterious-no-space-left-on/>. | ||
| 1195 | ((run-command-in-installer) "mkfs.ext4" "-F" partition | ||
| 1196 | "-O" "large_dir")) | ||
| 1191 | 1197 | ||
| 1192 | (define (create-fat16-file-system partition) | 1198 | (define (create-fat16-file-system partition) |
| 1193 | "Create a fat16 file-system for PARTITION file-name." | 1199 | "Create a fat16 file-system for PARTITION file-name." |
