From 389d17e8a0537a66b5018882883060f53855c55e Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Thu, 17 Sep 2015 14:45:28 -0700 Subject: [PATCH] Support 32-bit linux, this field is int32 on 32-bit systems --- disk/disk_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/disk_linux.go b/disk/disk_linux.go index d6c8cee7..df59f6a9 100644 --- a/disk/disk_linux.go +++ b/disk/disk_linux.go @@ -318,7 +318,7 @@ func GetDiskSerialNumber(name string) string { } func getFsType(stat syscall.Statfs_t) string { - t := stat.Type + t := int64(stat.Type) ret, ok := fsTypeMap[t] if !ok { return ""