X-Spam-Check-By: sourceware.org
Subject: RE: Problem creating device files
From: Sam Robb <sam.robb@timesys.com>
To: Nicolas Boudin <N.Boudin@neopost.com>
Cc: cygwin@cygwin.com
In-Reply-To: <0F788535AE8C7D4CB24CADB2A1BA8AF41B1FDF@server25.nibv.neopost.com>
References: 	 <0F788535AE8C7D4CB24CADB2A1BA8AF41B1FDF@server25.nibv.neopost.com>
Content-Type: text/plain
Date: Wed, 21 Jun 2006 12:57:26 -0400
Message-Id: <1150909046.19756.60.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.3 (2.2.3-4.fc4)
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Wed, 2006-06-21 at 11:11 +0200, Nicolas Boudin wrote:
> > You are making invalid assumptions.  Have a look into
> > /usr/include/cygwin/types.h and /usr/include/sys/sysmacros.h
> > and see the light.  After that, make a mental note:
> > 
> >   "Never create a device number other than by using the makedev macro"
> 
> OK, thank you. :) Now that I am enlightened I will enlight the guy who made this mistake in a program I am using. ;)

Nicolas,

  I should point out that the device node handling in the NFS server
isn't as good as it should be :-/  If you export a directory from Cygwin
using the NFS server, mount it on an Linux system, and then create a
device node on the NFS mount from the Linux system... well, that's just
plain broken.

  Translation of device node major/minor numbers *does* work properly if
the device node is created under Cygwin and then exported via NFS,
though.  So if you're going to create device nodes for a Linux root file
system, you'll want to create those under Cygwin, instead of from the
system where you mount the NFS export.

-Samrobb


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

