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: Mail-Followup-To: cygwin AT cygwin DOT com References: <328ed80b-aadb-262b-fd7b-37d0cc04c88e AT jdrake DOT com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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