From owner-freebsd-current@FreeBSD.ORG Sun Apr 22 21:23:19 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 E1CE816A400 for ; Sun, 22 Apr 2007 21:23:19 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 76FA413C44C for ; Sun, 22 Apr 2007 21:23:19 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 66525487FE; Sun, 22 Apr 2007 23:23:18 +0200 (CEST) Received: from localhost (public-gprs38729.centertel.pl [91.94.23.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id CB5D445CD9; Sun, 22 Apr 2007 23:22:58 +0200 (CEST) Date: Sun, 22 Apr 2007 23:22:13 +0200 From: Pawel Jakub Dawidek To: Gary Jennejohn Message-ID: <20070422212213.GK52622@garage.freebsd.pl> References: <200704221111.l3MBBhuu002657@peedub.jennejohn.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mZBmBd1ZkdwT1ny" Content-Disposition: inline In-Reply-To: <200704221111.l3MBBhuu002657@peedub.jennejohn.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL autolearn=no version=3.0.4 Cc: freebsd-current@FreeBSD.org Subject: Re: 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 21:23:20 -0000 --5mZBmBd1ZkdwT1ny Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 22, 2007 at 01:11:43PM +0200, Gary Jennejohn wrote: > I have a really strange problem with ZFS. >=20 > 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. >=20 > I have: > mypool/scr devices on default >=20 > The device numbers a _totally_ fubar on ZFS! >=20 > I used a tarball called dev.tar to move dev from a Linux box to my FreeBSD > box. >=20 > When I unpack dev.tar under ZFS I see totally screwd up values: >=20 > 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 >=20 > If I unpack dev.tar under UFS (/tmp) then all device numbers are correct: >=20 > 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 >=20 > The screwed up device numbers prevent me from using my FreeBSD box as the > server for my embedded boards. >=20 > Even weirder: >=20 > 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 >=20 > Any ideas WTF is going here? Is this a pathological problem with ZFS? I just committed a fix. Can you update and confirm it works for you? PS. Thanks for the kind bug report. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --5mZBmBd1ZkdwT1ny Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFGK9IFForvXbEpPzQRAkskAJsFOnGgVpCuDvIdRdcwvY3wrWupRgCgwJvN WykgpjkGd1XN7JDia6cHtNc= =Rt6+ -----END PGP SIGNATURE----- --5mZBmBd1ZkdwT1ny--