X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_MK,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4C6B2072.1080903@redhat.com> Date: Tue, 17 Aug 2010 17:51:14 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: mknod bug? major minor's are whacky References: <5FFFAB3EC03D09468D160693F176A1174EE2A922 AT CANOPUS> In-Reply-To: <5FFFAB3EC03D09468D160693F176A1174EE2A922@CANOPUS> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig7C247E3EEEEDBE16419DB7F5" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enig7C247E3EEEEDBE16419DB7F5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 08/17/2010 05:46 PM, Bob Goldberg wrote: > cygwin 1.7.6 >=20 > attempting to: > $ mknod null c 1 3 >=20 > what I get is: > crw-rw-rw- 1 user mkgroup-l-d 46200, 14467 2010-08-17 18:44 null >=20 > WHERE did those crazy major/minor's come from!?!? The fact that your owner is mkgroup-l-d is probably a hint - my guess is that cygwin is returning -1 because you haven't set up your user database correctly, rather than an actual device number. If that's the case, then cygwin could probably be fixed (device major/minor node numbers need not depend on whether the user database is set up correctly). At any rate, Cygwin does not necessarily use the same major/minor node numbers as Linux. Any use of mknod outside of creating named pipes is _highly_ platform dependent, and your best bet is to read the source code for the actual node numbers that cygwin supports rather than relying on something that worked for Linux. --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig7C247E3EEEEDBE16419DB7F5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJMayByAAoJEKeha0olJ0NqE8UIAK4mQQBwdzw8pZgtbuY2L+Vx oy5JfoST+MzEvHBj7TkCY+9n7RnWQmDE1hQfkEFDnPQWJoRFEHTbkOgFQz/KMWWO zfcYkR8K+gZXq5kFzTrVK3xxA4cVmeNWCDPjqnY/J26U5wq4eYZC825X0ITXCZFx vvTwii/SJH85fDHr3EclaHe6QveJ1YSFM18m9r0L6c/eFTP0dk2GJKgbg73E0/Fx LiSq6qqMEVTaZyDCDIAS85HJMSVblf2DdVi4a8fPsu5VTiOSlXAuEF37bFvuhTYV PVed86Sjar3LgrCEJkMEqCWYV40hypZ/uOq4jDAFZUUoVlX16BE7am5X0bF1tW0= =R3ZE -----END PGP SIGNATURE----- --------------enig7C247E3EEEEDBE16419DB7F5--