From owner-freebsd-fs@FreeBSD.ORG Thu Apr 22 21:14:25 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 A922B106566C for ; Thu, 22 Apr 2010 21:14:25 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-iw0-f204.google.com (mail-iw0-f204.google.com [209.85.223.204]) by mx1.freebsd.org (Postfix) with ESMTP id 6E2788FC0A for ; Thu, 22 Apr 2010 21:14:25 +0000 (UTC) Received: by iwn42 with SMTP id 42so5173537iwn.14 for ; Thu, 22 Apr 2010 14:14:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=Hy9zN0CdsEq0xqcqpDt/X2Gon9pQxSu7jMnRoRircyc=; b=NGdw/IMGfFD4zkF3d3fZ7yMaMpjlon5KUYTM3B1464ShCJuQgve0xZfp3vJ7rw+V7b zn3r7F1PTtlItsVwAsLN9rN+yuptt4KcKPsd6rCq/IRndzBFtez3SHQkeA1Vhim8IjhT C/okJMrIHtp2MfyripMNGWKG6QJisPCsO8m40= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bMEdewzX0V26KEQL8Gyvsxtkj3t4i+efOI27R9AEhDNyPn6Y7/rwOGCGzgZEXmSiQs nM9L2WIfmfufvOiln8o/tiGsHJpWnTw8AKIYNDIm6D7XqIAQs+iVHLBcPVcr4wPtV1wF W9oqIpqsDt9pCbXFuyscGoYIwKnQGl9Y5n5/4= MIME-Version: 1.0 Received: by 10.231.18.74 with HTTP; Thu, 22 Apr 2010 14:14:23 -0700 (PDT) In-Reply-To: References: Date: Thu, 22 Apr 2010 14:14:23 -0700 Received: by 10.231.190.137 with SMTP id di9mr773590ibb.76.1271970864572; Thu, 22 Apr 2010 14:14:24 -0700 (PDT) Message-ID: From: Freddie Cash To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Thu, 22 Apr 2010 21:14:25 -0000 On Thu, Apr 22, 2010 at 1:55 PM, 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 > > Somewhere in the 7.x -> 8.x transition, debugflags was incremented. You need to set it to 17 now. -- Freddie Cash fjwcash@gmail.com