From owner-freebsd-fs@FreeBSD.ORG Thu Apr 22 20:55:31 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 A2C871065676 for ; Thu, 22 Apr 2010 20:55:31 +0000 (UTC) (envelope-from scode@scode.org) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 46B1E8FC25 for ; Thu, 22 Apr 2010 20:55:30 +0000 (UTC) Received: by wwa36 with SMTP id 36so5790900wwa.13 for ; Thu, 22 Apr 2010 13:55:30 -0700 (PDT) MIME-Version: 1.0 Sender: scode@scode.org Received: by 10.216.50.11 with HTTP; Thu, 22 Apr 2010 13:55:29 -0700 (PDT) X-Originating-IP: [213.114.159.69] Date: Thu, 22 Apr 2010 22:55:29 +0200 X-Google-Sender-Auth: 245f112a26203885 Received: by 10.216.157.4 with SMTP id n4mr3392437wek.53.1271969729868; Thu, 22 Apr 2010 13:55:29 -0700 (PDT) Message-ID: From: Peter Schuller To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: 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 20:55:31 -0000 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 kdump shows: 15399 disklabel CALL open(0x800c02040,O_RDWR,0xa1a5) 15399 disklabel NAMI "/dev/ad9s1" 15399 disklabel RET open -1 errno 1 Operation not permitted 15399 disklabel CALL open(0x800651b68,O_RDONLY,0) 15399 disklabel NAMI "/dev/geom.ctl" 15399 disklabel RET open 4 15399 disklabel CALL ioctl(0x4,GEOM_CTL,0x800c04040) 15399 disklabel RET ioctl 0 15399 disklabel CALL close(0x4) 15399 disklabel RET close 0 15399 disklabel CALL write(0x2,0x7fffffffde90,0xb) 15399 disklabel GIO fd 2 wrote 11 bytes "disklabel: " 15399 disklabel RET write 11/0xb 15399 disklabel CALL write(0x2,0x7fffffffdf70,0xf) 15399 disklabel GIO fd 2 wrote 15 bytes "Class not found" 15399 disklabel RET write 15/0xf It has these labels: label/prboot1r1 N/A ad9s1a label/prswap1r1 N/A ad9s1b label/prtank1r1 N/A ad9s1d prtank1r1 is part of a ZFS pool. -- / Peter Schuller