From 9408f234fac3c91cb56ff0e472af759e7e960183 Mon Sep 17 00:00:00 2001 From: wanyaoqi <18528551+wanyaoqi@users.noreply.github.com> Date: Thu, 6 Mar 2025 11:16:19 +0800 Subject: [PATCH] fix(host-deployer): set xfs default ftype 1 (#22233) --- pkg/hostman/diskutils/fsutils/fsutils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hostman/diskutils/fsutils/fsutils.go b/pkg/hostman/diskutils/fsutils/fsutils.go index 360943ddcd..6a7895889c 100644 --- a/pkg/hostman/diskutils/fsutils/fsutils.go +++ b/pkg/hostman/diskutils/fsutils/fsutils.go @@ -417,7 +417,7 @@ func FormatPartition(path, fs, uuid string) error { // #case fs == "ntfs": // # cmd = []string{"/sbin/mkfs.ntfs"} case fs == "xfs": - cmd = []string{"mkfs.xfs", "-f", "-m", "crc=0", "-i", "projid32bit=0", "-n", "ftype=0"} + cmd = []string{"mkfs.xfs", "-f", "-m", "crc=0", "-i", "projid32bit=0", "-n", "ftype=1"} cmdUuid = []string{"xfs_admin", "-U", uuid} }