From owner-freebsd-hackers Sat Dec 22 15:13:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tungsten.btinternet.com (tungsten.btinternet.com [194.73.73.81]) by hub.freebsd.org (Postfix) with ESMTP id E931637B416 for ; Sat, 22 Dec 2001 15:13:25 -0800 (PST) Received: from host217-35-43-79.in-addr.btopenworld.com ([217.35.43.79] helo=marvin.penguinpowered.org.uk) by tungsten.btinternet.com with esmtp (Exim 3.22 #8) id 16HvKS-0005qf-00; Sat, 22 Dec 2001 23:13:21 +0000 Received: from [192.168.10.11] (helo=pan.realtime.co.uk) by marvin.penguinpowered.org.uk with esmtp (Exim 3.33 #1) id 16HvP0-0004sj-00; Sat, 22 Dec 2001 23:18:02 +0000 Received: from waynep by pan.realtime.co.uk with local (Exim 3.33 #1) id 16HvIO-00004v-00; Sat, 22 Dec 2001 23:11:12 +0000 From: Wayne Pascoe To: Chad David Cc: , freebsd-hackers@FreeBSD.ORG Subject: Re: Repost - f_type value in statfs structure References: <86wv01tijn.fsf@pan.home.penguinpowered.org.uk> <20011205160251.A20136@colnta.acns.ab.ca> Date: 22 Dec 2001 23:11:12 +0000 In-Reply-To: <20011205160251.A20136@colnta.acns.ab.ca> Message-ID: <86y9ju97fz.fsf@pan.home.penguinpowered.org.uk> Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chad David writes: > > The issue that I am having is detecting valid filesystems to do > > further checks on. I am only interested in checking local filesystems > > such as UFS. > > Check for the MNT_LOCAL flag in f_flags. > -- code example snipped -- Thanks for that. I've tried it and the problem with it is that it reports things like procfs and devfs as being local. The only things that don't appear local are things like nfs mounts. I guess I need a way to check only filesystems mounted off of disks. Is there any way of doing this ? -- - Wayne Pascoe | I laugh in the face of danger... freebsd@molemanarmy.com | Then I run and hide until it goes away! http://www.molemanarmy.com | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message