fix: Linux 下 ntfs-3g 分区 (fuseblk) 识别为虚拟磁盘

This commit is contained in:
Akizon77
2025-11-30 20:26:54 +08:00
parent e8835d135a
commit 7071fa746b

View File

@@ -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",