www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/02/18/14:41:25

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51IJfO2J3597993
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 51IJfO2J3597993
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=ls9fd7G5
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B5413858C66
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1739907683;
bh=Ym2pA3AzEO0byuVSaUiSEv5RUb94cYo/DBPgLDLjh10=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=ls9fd7G55P47NfFPNY0l5VNjLkCTEtF1jmECKshEKhcZIpXMS7bPIsIqa0N8r1Lxy
zB97lHm9jfL+J/pmUMag2v8YzjFo8VZz3EioZWOiYnAjGA0ZJBqOozAuQqRvhq/GQk
MuqScgh9HmdQdICrzUXE2uURrdslv/caAFOmxTVE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4701E3858D20
Date: Tue, 18 Feb 2025 20:40:30 +0100
To: cygwin AT cygwin DOT com
Subject: Re: [regression-3.6] df -k on Cygwin 3.6 no longer lists all
filesystems
Message-ID: <Z7TiLmZK3glAOS7H@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CALXu0UfOeEOsp4=zEa3Q3-9GjCmcQC6RCwdy2QEFA2uVvqRLhg AT mail DOT gmail DOT com>
<e8ab61d0-9893-6c20-e234-f58355d30189 AT jdrake DOT com>
<Z7TZkWITTUxxnhf8 AT calimero DOT vinschen DOT de>
<328ed80b-aadb-262b-fd7b-37d0cc04c88e AT jdrake DOT com>
<Z7TfpSKvHtBxPd9f AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <Z7TfpSKvHtBxPd9f@calimero.vinschen.de>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On Feb 18 20:29, Corinna Vinschen via Cygwin wrote:
> On Feb 18 11:19, Jeremy Drake via Cygwin wrote:
> > On Tue, 18 Feb 2025, Corinna Vinschen via Cygwin wrote:
> > 
> > > Yep. Are you going to create a patch?
> > 
> > I'm not seeing a particularly clean way to do this.  Bring back
> > available_drives, mask off bits when we see the corresponding drive root
> > from dos_drive_mappings, and return those drive letters whose bits are
> > still set at the end?
> 
> No, I wouldn't do that.
> 
> IMHO, the cleanest way to bring this back is to extend
> dos_drive_mappings::dos_drive_mappings():
> 
> - Prior to the FindFirstVolumeW/FindNextVolumeW loop, prepend another
>   loop iterating over GetLogicalDrives() or GetLogicalDriveStringsW().
>   In the loop, call QueryDosDevice and add this info to
>   dos_drive_mappings, just as in the FindVolume loop.
> 
> - In the second loop, simply ignore all mounts mounted to just a drive
>   letter (because the first loop already added them all).

If that isn't clear, "the second loop" is the FindFirstVolumeW/
FindNextVolumeW loop, now that a GetLogicalDrives loop got prepended.


Corinna

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

- Raw text -


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