From 7071fa746bd512e95a7c20c5ddca56e6d018949d Mon Sep 17 00:00:00 2001 From: Akizon77 Date: Sun, 30 Nov 2025 20:26:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Linux=20=E4=B8=8B=20ntfs-3g=20=E5=88=86?= =?UTF-8?q?=E5=8C=BA=20(fuseblk)=20=E8=AF=86=E5=88=AB=E4=B8=BA=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E7=A3=81=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitoring/unit/disk.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monitoring/unit/disk.go b/monitoring/unit/disk.go index f164859..423a9ed 100644 --- a/monitoring/unit/disk.go +++ b/monitoring/unit/disk.go @@ -85,6 +85,10 @@ func isPhysicalDisk(part disk.PartitionStat) bool { } fstype := strings.ToLower(part.Fstype) + // 针对 Linux 下通过 ntfs-3g 挂载的 NTFS 分区 (fuseblk),这是实际物理磁盘,不应排除 + if fstype == "fuseblk" { + return true + } var fstypeToExclude = []string{ "tmpfs", "devtmpfs",