programmatically getting mounts?

2005-09-21 Thread N.J. Thomas
Short of grepping the output of mount or df, what is the best way to
programmatically get a list of mounted filesystems?

I glance at sysctl shows nothing, and mounting linprocfs doesn't give a
very Linux-esque listing -- just processes.

thanks,
Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: programmatically getting mounts?

2005-09-21 Thread Adam Welch
On Wed, 2005-09-21 at 11:00 -0400, N.J. Thomas wrote:
 Short of grepping the output of mount or df, what is the best way to
 programmatically get a list of mounted filesystems?
 
 I glance at sysctl shows nothing, and mounting linprocfs doesn't give a
 very Linux-esque listing -- just processes.
 
 thanks,
 Thomas
 

Try man -S3 getmntinfo, because you said programmatically.

,Adam

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]