From owner-freebsd-current@FreeBSD.ORG Sun Apr 22 11:38:30 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 402DC16A408 for ; Sun, 22 Apr 2007 11:38:30 +0000 (UTC) (envelope-from garyj@jennejohn.org) Received: from mail08b.verio.de (mail08b.verio.de [213.198.55.74]) by mx1.freebsd.org (Postfix) with SMTP id 5F30D13C469 for ; Sun, 22 Apr 2007 11:38:29 +0000 (UTC) (envelope-from garyj@jennejohn.org) Received: from mx123.stngva01.us.mxservers.net (198.173.112.52) by mail08b.verio.de (RS ver 1.0.95vs) with SMTP id 1-0120231906 for ; Sun, 22 Apr 2007 13:38:27 +0200 (CEST) Received: from mmm808.verio.de [213.198.55.120] (EHLO mmm808.verio.de) by mx123.stngva01.us.mxservers.net (mxl_mta-1.3.8-10p4) with ESMTP id 9184b264.32475.387.mx123.stngva01.us.mxservers.net; Sun, 22 Apr 2007 07:33:45 -0400 (EDT) Received: (qmail 11917 invoked from network); 22 Apr 2007 11:11:44 -0000 Received: from unknown (HELO peedub.jennejohn.org) (89.54.132.168) by with SMTP; 22 Apr 2007 11:11:44 -0000 Received: from jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.14.1/8.14.1) with ESMTP id l3MBBhuu002657 for ; Sun, 22 Apr 2007 13:11:43 +0200 (CEST) (envelope-from garyj@jennejohn.org) Message-Id: <200704221111.l3MBBhuu002657@peedub.jennejohn.org> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.0.4 To: freebsd-current@FreeBSD.org From: Gary Jennejohn Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 22 Apr 2007 13:11:43 +0200 Sender: garyj@jennejohn.org X-Spam: [F=0.4993443676; heur=0.500(0); stat=0.489; spamtraq-heur=0.510(2007022501)] X-MAIL-FROM: X-SOURCE-IP: [213.198.55.120] X-SF-Loop: 1 Cc: Subject: Problem with ZFS and devices X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2007 11:38:30 -0000 I have a really strange problem with ZFS. I have a filesystem (mypool/scr mounted on /scr) which contains root file systems for various embedded boards (arm, ppc, mips). The file systems naturally contain a /dev directory. I have: mypool/scr devices on default The device numbers a _totally_ fubar on ZFS! I used a tarball called dev.tar to move dev from a Linux box to my FreeBSD box. When I unpack dev.tar under ZFS I see totally screwd up values: crw-r--r-- 1 root bin 5, 0xc11b0020 Feb 3 22:06 ttyCPM0 crw-r--r-- 1 root bin 0, 0 Feb 3 22:06 ttyCPM1 crw-r--r-- 1 root bin 69, 0xc11a0008 Feb 3 22:06 ttyCPM2 crw-r--r-- 1 root bin 0, 0 Feb 3 22:06 ttyCPM3 crw-r--r-- 1 root bin 0, 0 Feb 3 22:06 ttyCPM4 crw-r--r-- 1 root bin 69, 0xc11a0008 Feb 3 22:06 ttyCPM5 If I unpack dev.tar under UFS (/tmp) then all device numbers are correct: crw-r--r-- 1 root bin 204, 46 Feb 3 22:06 ttyCPM0 crw-r--r-- 1 root bin 204, 47 Feb 3 22:06 ttyCPM1 crw-r--r-- 1 root bin 204, 48 Feb 3 22:06 ttyCPM2 crw-r--r-- 1 root bin 204, 49 Feb 3 22:06 ttyCPM3 crw-r--r-- 1 root bin 204, 50 Feb 3 22:06 ttyCPM4 crw-r--r-- 1 root bin 204, 51 Feb 3 22:06 ttyCPM5 The screwed up device numbers prevent me from using my FreeBSD box as the server for my embedded boards. Even weirder: root:peedub:~:bash:1> cd /scr/eldk-4.1/arm/arm/dev root:peedub:dev:bash:2> mknod ttyCPM0 c 204 46 root:peedub:dev:bash:3> ls -l total 1 crw-r--r-- 1 root bin 0, 0 Apr 22 13:02 ttyCPM0 Any ideas WTF is going here? Is this a pathological problem with ZFS? -- Gary Jennejohn / garyjATjennejohnDOTorg gjATfreebsdDOTorg garyjATdenxDOTde