From owner-freebsd-hackers Mon Dec 24 15:22:51 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 BD0E237B41C for ; Mon, 24 Dec 2001 15:22:46 -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 16IeQf-0005K5-00 for freebsd-hackers@freebsd.org; Mon, 24 Dec 2001 23:22:45 +0000 Received: from [192.168.10.11] (helo=pan.realtime.co.uk) by marvin.penguinpowered.org.uk with esmtp (Exim 3.33 #1) id 16IeV8-0005kF-00 for freebsd-hackers@freebsd.org; Mon, 24 Dec 2001 23:27:22 +0000 Received: from waynep by pan.realtime.co.uk with local (Exim 3.33 #1) id 16IeOa-00008r-00 for freebsd-hackers@FreeBSD.ORG; Mon, 24 Dec 2001 23:20:36 +0000 From: Wayne Pascoe To: freebsd-hackers@FreeBSD.ORG Subject: Re: Repost - f_type value in statfs structure References: <20011223023352.A5404@colnta.acns.ab.ca> <20011224000418.T2506-100000@coredump.scriptkiddie.org> <20011224090319.A7670@colnta.acns.ab.ca> Date: 24 Dec 2001 23:20:36 +0000 In-Reply-To: <20011224090319.A7670@colnta.acns.ab.ca> Message-ID: <86n108ryrf.fsf@pan.home.penguinpowered.org.uk> Lines: 39 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: > > > They are local :). Local means that the fs originates on the local > > > machine. yes. I realise this now. Note to self, define what it is you are trying to do before trying to do it :( I could have saved so much time if I'd been clearer on that earlier. > > > I think you should be able to call getvfsbyname() and check the flags in > > > the resulting vfsconf struct for VFCF_SYNTHETIC, but I'm not sure how > > > reliable that is. I'm pretty sure devfs is ok, but procfs might not be? Hmm. I've ended up using getfsfile. I'm just checking that the first 4 characters of .fs_spec are /dev I am working on the assumption that all filesystems I want to check would be mounted out of /dev. Other things like proc and devfs wouldn't be, so they would be skipped. Is this a safe assumption ? > > try vn_isdisk(vp, &error) where vp is the vnode pointer to the block > > device? > > > > He is trying to do this from userland, I think...? Yes, I am. The kernel is faaaaaar beyond me for the forseeable future. Thanks for all the help. Merry Christmas and a hacky new year to all :) -- - Wayne Pascoe | WINDOWS: Where do you want to go today? freebsd@molemanarmy.com | LINUX: Where do you want to go tomorrow? http://www.molemanarmy.com | FreeBSD: Are you guys coming or what? | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message