delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/01/17/08:48:40

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 17 Jan 2011 14:48:10 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Output of /proc/partitions now incomplete on WinXP
Message-ID: <20110117134810.GB11221@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4D31B0B5 DOT 7060406 AT t-online DOT de>
MIME-Version: 1.0
In-Reply-To: <4D31B0B5.7060406@t-online.de>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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 Jan 15 15:35, Christian Franke wrote:
> At least under WinXP SP3 the output of /proc/partitions does not
> longer list sda1, sda2, ... even if run with admin rights:
> 
> # cygcheck -f /bin/cygwin1.dll
> cygwin-1.7.7-1
> 
> # cat /proc/partitions
> major minor  #blocks  name
> 
>     8     0 976762584 sda
>     8    16 976762584 sdb
> 
> It worked with 1.7.5-1 (but with admin rights only).
> 
> strace output contains this line for each missing sdXN:
> 
> ... [main] cat 3992 format_proc_partitions: DeviceIoControl Win32 error 5
> 
> Problem is likely introduced by fhandler_proc.cc 1.91. The new
> method without FILE_READ_DATA permission may work on Win7 but is
> apparently not backward compatible with XP.

Thanks for the report.

There was some chicken-egg problem with permissions.  I rewrote the
method to fetch partition information entirely so that it should work
now for all users starting with XP, and for admin users only up to
Windows 2000.

Tested with admin and non-admin accounts on NT4SP6, W2KSP4, XPSP3,
2K8SP2, and W7.


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

- Raw text -


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