Merge branch 'komari-monitor:main' into fix-issue-#49

This commit is contained in:
xxxizum1kxxx
2025-12-01 00:03:39 +08:00
committed by GitHub
2 changed files with 231 additions and 35 deletions

View File

@@ -107,6 +107,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",