[regression-3.6] df -k on Cygwin 3.6 no longer lists all filesystems
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Feb 18 19:29:41 GMT 2025
On Feb 18 11:19, Jeremy Drake via Cygwin wrote:
> On 2025年2月18日, 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).
Makes sense?
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
More information about the Cygwin
mailing list