Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2002 11:21:02 -0500 (EST)
From:      Robert Watson <rwatson@freebsd.org>
To:        Alfred Perlstein <bright@mu.org>
Cc:        fs@freebsd.org, mux@FreeBSD.ogr
Subject:   Re: how does one know if you're using ufs2?
Message-ID:  <Pine.NEB.3.96L.1021106111833.46792B-100000@fledge.watson.org>
In-Reply-To: <20021104042931.GQ24139@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1021106111833.46792B-100000>