From 98545ea11558cf6c230dfaebdd0af2acd50e0f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 10 Jul 2024 15:20:11 +0200 Subject: [PATCH] =?UTF-8?q?installer:=20Create=20ext4=20file=20systems=20w?= =?UTF-8?q?ith=20=E2=80=98-O=20large=5Fdir=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/installer/parted.scm (create-ext4-file-system): Pass ‘-O large_dir’ to ‘mkfs.ext4’. Change-Id: Ie34039ed03f273505e7f7fb5c3241120e3395ba2 --- gnu/installer/parted.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gnu/installer/parted.scm b/gnu/installer/parted.scm index 51fa7cf9d9..dbdec1bba8 100644 --- a/gnu/installer/parted.scm +++ b/gnu/installer/parted.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018, 2019 Mathieu Othacehe -;;; Copyright © 2019, 2020, 2022 Ludovic Courtès +;;; Copyright © 2019-2020, 2022, 2024 Ludovic Courtès ;;; Copyright © 2020 Tobias Geerinckx-Rice ;;; Copyright © 2022 Josselin Poiret ;;; @@ -1187,7 +1187,13 @@ (define (create-btrfs-file-system partition) (define (create-ext4-file-system partition) "Create an ext4 file-system for PARTITION file-name." - ((run-command-in-installer) "mkfs.ext4" "-F" partition)) + ;; Enable the 'large_dir' feature so users can have a store of several TiBs. + ;; Failing to do that, the directory index (enabled by 'dir_index') can fill + ;; up and adding new files would fail with ENOSPC despite there being plenty + ;; of free space and inodes: + ;; . + ((run-command-in-installer) "mkfs.ext4" "-F" partition + "-O" "large_dir")) (define (create-fat16-file-system partition) "Create a fat16 file-system for PARTITION file-name."