Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Apr 2007 23:22:13 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Gary Jennejohn <garyj@jennejohn.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: Problem with ZFS and devices
Message-ID:  <20070422212213.GK52622@garage.freebsd.pl>
In-Reply-To: <200704221111.l3MBBhuu002657@peedub.jennejohn.org>
References:  <200704221111.l3MBBhuu002657@peedub.jennejohn.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070422212213.GK52622>