From owner-freebsd-fs Wed Nov 6 8:21:41 2002 Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66F9037B401 for ; Wed, 6 Nov 2002 08:21:40 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id BED2443E4A for ; Wed, 6 Nov 2002 08:21:39 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.4/8.12.4) with SMTP id gA6GL3Oo051319; Wed, 6 Nov 2002 11:21:03 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Wed, 6 Nov 2002 11:21:02 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Alfred Perlstein Cc: fs@freebsd.org, mux@FreeBSD.ogr Subject: Re: how does one know if you're using ufs2? In-Reply-To: <20021104042931.GQ24139@elvis.mu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org It might be worth exporting this information via nmount using a 'version' field, which would be set to a value of '1' if ufs1, and '2' if ufs2. Since the file name string is tied up with things like module support, we probably want to avoid tweaking that. BTW, from a practical perspective, you can probe for UFS1 vs. UFS2 by checking for extended attribute support using error = extattr_get_file("/file/system/root", "", "", 0); or something to that extent: UFS1, even with EA support, doesn't currently support listing available EAs, whereas UFS2 does. Exporting a version string would be preferred. mux@ CC'd because he's Mr Nmount. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories On Sun, 3 Nov 2002, Alfred Perlstein wrote: > How do you know if you're using ufs1 or ufs2 disks? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-fs" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message