From owner-freebsd-fs@FreeBSD.ORG Fri Apr 23 08:36:05 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4E7C1065670 for ; Fri, 23 Apr 2010 08:36:05 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta10.westchester.pa.mail.comcast.net (qmta10.westchester.pa.mail.comcast.net [76.96.62.17]) by mx1.freebsd.org (Postfix) with ESMTP id 8329C8FC1B for ; Fri, 23 Apr 2010 08:36:04 +0000 (UTC) Received: from omta05.westchester.pa.mail.comcast.net ([76.96.62.43]) by qmta10.westchester.pa.mail.comcast.net with comcast id 8wY91e0010vyq2s5Awc5M2; Fri, 23 Apr 2010 08:36:05 +0000 Received: from koitsu.dyndns.org ([98.248.46.159]) by omta05.westchester.pa.mail.comcast.net with comcast id 8wc31e0063S48mS3Rwc3Y4; Fri, 23 Apr 2010 08:36:05 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 356589B42D; Fri, 23 Apr 2010 01:23:45 -0700 (PDT) Date: Fri, 23 Apr 2010 01:23:45 -0700 From: Jeremy Chadwick To: Peter Schuller Message-ID: <20100423082345.GA27379@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-fs@freebsd.org Subject: Re: kern.geom.debugflags=16 does NOT allow me to write to device X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2010 08:36:05 -0000 On Thu, Apr 22, 2010 at 10:55:29PM +0200, Peter Schuller wrote: > open() in O_RDWR fails on the device in question (which is "used" by > glabel, indirectly by gmirror and zfs). > > This is on an 8.0 userland and 8-STABLE kernel. This is a bit stupid I > know (nevermind why), but given that a plain open() syscall is failing > I highly doubt that it has anything to do with the userland being out > of synch. I cannot imagine GEOM changing like that in between 8.0 and > 8-STABLE before the 8.1 release (correct me if this is a poor > assumption). > > Observe: > > % whoami > root > % sysctl -w kern.geom.debugflags=16 > kern.geom.debugflags: 16 -> 16 > % sysctl kern.geom.debugflags > kern.geom.debugflags: 16 > % ktrace disklabel -B /dev/ad9s1 > disklabel: Class not found You'd have seen this problem on 8.0-RELEASE as well. I've been bitching about it since trying out 8.0-RC1. The "Class not found" errors have existed for way too long, and are confusing people left and right. Supposedly we're supposed to use gpart(8) now, but I haven't figured out how to use it in the same way as bsdlabel. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |