Merge pull request #8930 from vbatts/vbatts-mount_freebsd_fields

pkg/mount: adding fields supported by freebsd
This commit is contained in:
Michael Crosby 2014-11-13 11:54:16 -08:00
commit 004eb9e894

View file

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