getfsstat(2) based BsdFileSystem.getMountEntries()
Terje Sten Bjerkseth
terje+bsd at ceteo.no
Tue May 26 16:04:10 PDT 2009
Hi Kurt. Your patch appears to work on Mac OS X 10.5.7. Great!
~/code/bsd-port $ java MountTest
FileStore: / (/dev/disk0s2)
type: hfs isReadOnly: false
total 243862672 used 212010248 avail 31596424
FileStore: /dev (devfs)
type: devfs isReadOnly: false
total 1 used 1 avail 0
FileStore: /dev (fdesc)
type: fdesc isReadOnly: false
total 1 used 1 avail 0
FileStore: /net (map -hosts)
type: autofs isReadOnly: false
total 0 used 0 avail 0
FileStore: /home (map auto_home)
type: autofs isReadOnly: false
total 0 used 0 avail 0
~/code/bsd-port $ df -k
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/disk0s2 243862672 212010216 31596456 88% /
devfs 107 107 0 100% /dev
fdesc 1 1 0 100% /dev
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home
More information about the bsd-port-dev
mailing list