From cf64e65305ee69df7566bf9f5d597e84b9d60410 Mon Sep 17 00:00:00 2001 From: mulhern Date: Tue, 28 Nov 2023 13:15:48 -0500 Subject: [PATCH] Unconditionally add nrext64=0 to inode options Signed-off-by: mulhern --- src/engine/strat_engine/cmd.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/engine/strat_engine/cmd.rs b/src/engine/strat_engine/cmd.rs index 0f6a870520a..40ccebacd81 100644 --- a/src/engine/strat_engine/cmd.rs +++ b/src/engine/strat_engine/cmd.rs @@ -244,6 +244,15 @@ pub fn create_fs(devnode: &Path, uuid: Option) -> StratisResult<()> command.arg("-m"); command.arg(format!("uuid={uuid}")); } + + // Use smaller size extent counters. Note that the size of the extent + // counters can be increased using an xfs_repair command, although this can + // be a costly operation. If a filesystem is created with the larger size + // extent counters, which is the default for mkfs.xfs >= 6.5.0, then it + // will be unmountable on kernels which do not support the larger size. + command.arg("-i"); + command.arg(format!("nrext64=0")); + execute_cmd(&mut command) }