From 3a2c49a3d9fd122559921d5fa5bc910f6c059d70 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 3 Nov 2014 14:01:50 -0500 Subject: [PATCH] pkg/mount: adding fields supported by freebsd Signed-off-by: Vincent Batts --- mount/mountinfo_freebsd.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mount/mountinfo_freebsd.go b/mount/mountinfo_freebsd.go index a16bdb8..2fe9186 100644 --- a/mount/mountinfo_freebsd.go +++ b/mount/mountinfo_freebsd.go @@ -32,6 +32,8 @@ func parseMountTable() ([]*MountInfo, error) { for _, entry := range entries { var mountinfo MountInfo mountinfo.Mountpoint = C.GoString(&entry.f_mntonname[0]) + mountinfo.Source = C.GoString(&entry.f_mntfromname[0]) + mountinfo.Fstype = C.GoString(&entry.f_fstypename[0]) out = append(out, &mountinfo) } return out, nil