kern.geom.debugflags=16 does NOT allow me to write to device
Freddie Cash
fjwcash at gmail.com
Thu Apr 22 21:14:25 UTC 2010
On Thu, Apr 22, 2010 at 1:55 PM, Peter Schuller <peter.schuller at 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 at gmail.com
More information about the freebsd-fs
mailing list