mirror of
https://github.com/fankes/komari-agent.git
synced 2026-03-26 21:35:12 +08:00
fix: Linux 下 ntfs-3g 分区 (fuseblk) 识别为虚拟磁盘
This commit is contained in:
@@ -85,6 +85,10 @@ func isPhysicalDisk(part disk.PartitionStat) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fstype := strings.ToLower(part.Fstype)
|
fstype := strings.ToLower(part.Fstype)
|
||||||
|
// 针对 Linux 下通过 ntfs-3g 挂载的 NTFS 分区 (fuseblk),这是实际物理磁盘,不应排除
|
||||||
|
if fstype == "fuseblk" {
|
||||||
|
return true
|
||||||
|
}
|
||||||
var fstypeToExclude = []string{
|
var fstypeToExclude = []string{
|
||||||
"tmpfs",
|
"tmpfs",
|
||||||
"devtmpfs",
|
"devtmpfs",
|
||||||
|
|||||||
Reference in New Issue
Block a user