From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 18 15:20:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B0E7106567B for ; Mon, 18 Jul 2011 15:20:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4803A8FC1C for ; Mon, 18 Jul 2011 15:20:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6IFKBcx073175 for ; Mon, 18 Jul 2011 15:20:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6IFKBtW073172; Mon, 18 Jul 2011 15:20:11 GMT (envelope-from gnats) Resent-Date: Mon, 18 Jul 2011 15:20:11 GMT Resent-Message-Id: <201107181520.p6IFKBtW073172@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gerrit Kühn Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86385106566B for ; Mon, 18 Jul 2011 15:16:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 757018FC0C for ; Mon, 18 Jul 2011 15:16:25 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p6IFGOaG010951 for ; Mon, 18 Jul 2011 15:16:24 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p6IFGOLY010950; Mon, 18 Jul 2011 15:16:24 GMT (envelope-from nobody) Message-Id: <201107181516.p6IFGOLY010950@red.freebsd.org> Date: Mon, 18 Jul 2011 15:16:24 GMT From: Gerrit Kühn To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/159010: zfsv28 serves bad device nodes via nfs on FreeBSD 8.2 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2011 15:20:11 -0000 >Number: 159010 >Category: kern >Synopsis: zfsv28 serves bad device nodes via nfs on FreeBSD 8.2 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 18 15:20:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Gerrit Kühn >Release: 8.2-stable as of 15th of July 2011 >Organization: AEI/MPG >Environment: FreeBSD mclane.rt.aei.uni-hannover.de 8.2-STABLE FreeBSD 8.2-STABLE #0: Thu Jul 14 14:09:47 CEST 2011 root@mclane.rt.aei.uni-hannover.de:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Copied from my email on freebsd-stable: I guess I found the root of all evil now: device nodes on zfs! This is how a linux /dev/console looked on the 8.0-FreeBSD server on zfsv15: crw------- 1 root wheel 5, 1 Oct 28 2010 /tank/diskless/gco-fe2/dev/console Now, after updating to FreeBSD-8.2 and zfsv28 it looks like this on the server: crw-r--r-- 1 root wheel 255, 0xffff00ff Jul 18 16:33 /tank/diskless/pt-fe2/dev/console Strange enough, the Linux client still displays the correct values when using "ls -la", but it refuses to work properly. I tried creating new device nodes from the client side with mknod and I tried getting correct ones from a backup, but they always end up being broken. Even moving the directories over to a ufs volume leaves them unusable: crw-r--r-- 1 root wheel 0, 0 Jul 18 16:33 /tmp/console Luckily, I am back into business now with my machines, because moving the stuff from zfs to ufs and dropping in a correct version of /dev on the ufs side works just fine. However, it would be great if this could be fixed, because I do not have many ufs partitions left these days... >How-To-Repeat: Upgrade filesystems containing device nodes (Linux diskless client in this case) to zfsv28 on FreeBSD 8.2-stable. >Fix: >Release-Note: >Audit-Trail: >Unformatted: