pkg/mount: adding fields supported by freebsd

Signed-off-by: Vincent Batts <vbatts@redhat.com>
Upstream-commit: 0e217c4a9e123551843ceeecdefe5d66b408cdf3
Component: engine
This commit is contained in:
Vincent Batts
2014-11-03 14:01:50 -05:00
parent 9fda67e5fe
commit c665136554

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