Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2001 14:22:01 -0500
From:      Mathew KANNER <mat@cs.mcgill.ca>
To:        Marc W <mwlist@lanfear.com>
Cc:        FreeBSD Hackers <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: Programmatically determining FS type
Message-ID:  <20010326142201.A11520@cs.mcgill.ca>
In-Reply-To: Marc W's message [Programmatically determining FS type] as of Mon, Mar 26, 2001 at 11:05:35AM -0800
References:  <200103261905.LAA34003@akira.lanfear.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 26, Marc W wrote:
> 
> 
>     Is there a way in code, given a path (/moo/cow/oink) to determine
> the filesystem type for this given path?   any chance there's a posix
> portable way of doing this, or is it always going to be very system
> specific?

	statfs(2)

	I think this a what df(1) uses.

	--Mat
> 
>     thanks!
> 
>     marc.
> 
> 
> 
> 
> Marc W, San Francisco, CA
> Kiltdown -- a free email client for X
> www.kiltdown.org -- it's what's underneath that counts.
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message

-- 
Mathew Kanner <mat@CS.McGill.CA>  Sys Admin at large
   Obtuse quote: He [not me] understands: "This field of perception
   is void of perception of man." -- The Quintessence of Buddhism 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010326142201.A11520>