From 83ca5491a241809425479639da1f6c375d3dc5c8 Mon Sep 17 00:00:00 2001 From: Nikolay Sivko Date: Tue, 26 Aug 2014 15:29:55 +0400 Subject: [PATCH] fill DiskPartitionStat.Device on freebsd --- disk_freebsd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/disk_freebsd.go b/disk_freebsd.go index 9fa6383..be80297 100644 --- a/disk_freebsd.go +++ b/disk_freebsd.go @@ -71,6 +71,7 @@ func DiskPartitions(all bool) ([]DiskPartitionStat, error) { } d := DiskPartitionStat{ + Device: byteToString(stat.FMntfromname[:]), Mountpoint: byteToString(stat.FMntonname[:]), Fstype: byteToString(stat.FFstypename[:]), Opts: opts,