From owner-freebsd-hackers Sat Dec 22 15:17:57 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 5D8DD37B416 for ; Sat, 22 Dec 2001 15:17:55 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id D8CBF81E0C; Sat, 22 Dec 2001 17:17:49 -0600 (CST) Date: Sat, 22 Dec 2001 17:17:49 -0600 From: Alfred Perlstein To: Wayne Pascoe Cc: Chad David , freebsd-hackers@FreeBSD.ORG Subject: Re: Repost - f_type value in statfs structure Message-ID: <20011222171749.C48837@elvis.mu.org> References: <86wv01tijn.fsf@pan.home.penguinpowered.org.uk> <20011205160251.A20136@colnta.acns.ab.ca> <86y9ju97fz.fsf@pan.home.penguinpowered.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <86y9ju97fz.fsf@pan.home.penguinpowered.org.uk>; from freebsd@molemanarmy.com on Sat, Dec 22, 2001 at 11:11:12PM +0000 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 * Wayne Pascoe [011222 17:13] wrote: > 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 ? See GETFSENT(3). -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message