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