Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Apr 2010 14:14:23 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   Re: kern.geom.debugflags=16 does NOT allow me to write to device
Message-ID:  <g2rb269bc571004221414m828ac15ahdde1abaf43b6ee8c@mail.gmail.com>
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 1:55 PM, Peter Schuller <peter.schuller@infidyne.com
> 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
>
> Somewhere in the 7.x -> 8.x transition, debugflags was incremented.  You
need to set it to 17 now.

-- 
Freddie Cash
fjwcash@gmail.com



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