From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14439 invoked by alias); 7 Aug 2011 11:38:40 -0000 Received: (qmail 14416 invoked by uid 22791); 7 Aug 2011 11:38:20 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Sun, 07 Aug 2011 11:38:06 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 387422C0633; Sun, 7 Aug 2011 13:38:04 +0200 (CEST) Date: Sun, 07 Aug 2011 11:38:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: pb w/ cygpath -w /dev/sdXY (was Re: Device names in /proc/mounts) Message-ID: <20110807113804.GH11601@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20110729092027.GA19240@calimero.vinschen.de> <9B10FEAACF062F48A095880A451FF05903819B331A@DEMCHP99E84MSX.ww902.siemens.net> <20110729201556.GA13084@calimero.vinschen.de> <4E3DD3E1.3040903@laposte.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4E3DD3E1.3040903@laposte.net> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-08/txt/msg00161.txt.bz2 On Aug 7 01:53, Cyrille Lefevre wrote: > some times ago, someone (you?) modifies cygpath to handle /dev/sdXY paths. > > however, it seems there is a problem somewhere ? > > v2$ uname -a > CYGWIN_NT-6.0 pcvista 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin > > v2$ /usr/sbin/blkid > /dev/sda1: LABEL="BOOT500G0 (CW_VM_2)" UUID="905A77A75A77892C" TYPE="ntfs" > /dev/sda2: LABEL="DATA500G0 (DL_2)" UUID="3CBA5BBFBA5B747C" TYPE="ntfs" > /dev/sda3: LABEL="RECOVER_2" UUID="8644-3F52" TYPE="vfat" > /dev/sda4: UUID="e57dd3da-585e-4d23-9761-f714c75f32c0" > SEC_TYPE="ext2" TYPE="ext3" > /dev/sda5: UUID="138b9a25-2681-4b4f-a428-ff8dd62e18ff" TYPE="swap" > /dev/sdb1: LABEL="ESATA2T1 (MOVIES)" UUID="1E5275B85275956D" TYPE="ntfs" > /dev/sdc1: LABEL="ESATA2T2 (OAV_SERIES_BD_DOC_PSP)" > UUID="DE6EC4C36EC49625" TYPE="ntfs" > /dev/sdd1: LABEL="SATA500G0 (BOOT_CW_VM)" UUID="905A77A75A77892C" > TYPE="ntfs" > /dev/sdd2: LABEL="SATA500G1 (DL)" UUID="4024F55724F55080" TYPE="ntfs" > /dev/sdd3: LABEL="RECOVER" UUID="8644-3F52" TYPE="vfat" > /dev/sde1: LABEL="SATA500G2 (EMULE_NORTON)" UUID="886606C66606B54A" > TYPE="ntfs" > /dev/sdi1: LABEL="USB500G1 (MM_OLD_TUHS)" UUID="4CA87E8AA87E7276" > TYPE="ntfs" > /dev/sdj1: LABEL="USB1T1 (REPS)" UUID="FEB2DCA1B2DC5FA7" TYPE="ntfs" > > v2$ cygpath -w $(/usr/sbin/blkid | cut -d: -f1 > \\.\E: > \\.\G: > \\.\H: > \\.\STORAGE#Volume#1&19f7e59c&0&Signature1A08653EOffset320053F800Length12996C000#{7f108a28-9833-4b3b-b780-2c6b5fa5c062} > \\.\STORAGE#Volume#1&19f7e59c&0&Signature1A08653EOffset3329EB3600Length11A5CA00#{7f108a28-9833-4b3b-b780-2c6b5fa5c062} > \\.\I: > \\.\J: > \\.\C: > \\.\D: > E:0 > E:1 > E:5 > E:6 > > sda1..5 ok > sdb1, sdc1, sdd1..2 ok > sdd3 ko E:0 instead of R: > sde1 ko E:1 instead of S: > sdi1 ko E:2 instead of F: > sdj1 ko E:3 instead of K: > > any ideas ? No. I don't see what's going on inside and I don't have an environment available to reproduce the problem. This appears to occur inside of cygpath's get_device_name(), a simple ~140 lines function. Care to debug it yourself? Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple