delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/21/12:55:56

X-Spam-Check-By: sourceware.org
Subject: RE: Problem creating device files
From: Sam Robb <sam DOT robb AT timesys DOT com>
To: Nicolas Boudin <N DOT Boudin AT neopost DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <0F788535AE8C7D4CB24CADB2A1BA8AF41B1FDF@server25.nibv.neopost.com>
References: <0F788535AE8C7D4CB24CADB2A1BA8AF41B1FDF AT server25 DOT nibv DOT neopost DOT com>
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)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019