Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Apr 2010 01:23:45 -0700
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        Peter Schuller <peter.schuller@infidyne.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: kern.geom.debugflags=16 does NOT allow me to write to device
Message-ID:  <20100423082345.GA27379@icarus.home.lan>
In-Reply-To: <y2z5a1151761004221355l391c05f4qc6c0f760321b56f5@mail.gmail.com>
References:  <y2z5a1151761004221355l391c05f4qc6c0f760321b56f5@mail.gmail.com>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100423082345.GA27379>