Re: [PATCH v2 1/2] Cygwin: make list of mounts for a volume in dos_drive_mappings

2025-02-12 Thread Corinna Vinschen
On Feb 11 16:13, Jeremy Drake via Cygwin-patches wrote: > On Tue, 11 Feb 2025, Corinna Vinschen wrote: > > > On Feb 10 17:13, Jeremy Drake via Cygwin-patches wrote: > > > make mappings linked list in order rather than reverse order. > > > > Why? I'm not asking for myself, but for the commit messa

Re: [PATCH v3 2/2] Cygwin: expose all windows volume mount points.

2025-02-12 Thread Corinna Vinschen
Hi Jeremy, your patch is basically fine, and I was about to push it, when I realized that I don't quite understand this: On Feb 12 10:56, Jeremy Drake via Cygwin-patches wrote: > struct mntent * > mount_info::getmntent (int x) > { >if (x < 0 || x >= nmounts) > -return cygdrive_getmnten

Re: [PATCH v3 2/2] Cygwin: expose all windows volume mount points.

2025-02-12 Thread Jeremy Drake via Cygwin-patches
On Wed, 12 Feb 2025, Jeremy Drake via Cygwin-patches wrote: > On Wed, 12 Feb 2025, Jeremy Drake via Cygwin-patches wrote: > > > It was *supposed* to not return the second one. Maybe I broke it when > > trying to break out of the loop early... I will test this scenario and > > see why it doesn't

[PATCH v4 1/3] Cygwin: store list of mounts for volumes in dos_drive_mappings.

2025-02-12 Thread Jeremy Drake via Cygwin-patches
The existing code only stored the first mount for each volume, but now we store the complete list, and split it into a linked list. This will be used in a subsequent commit to populate cygdrive mount entries. Signed-off-by: Jeremy Drake --- winsup/cygwin/local_includes/mount.h | 11 --- win

[PATCH v4 2/3] Cygwin: expose all windows volume mount points.

2025-02-12 Thread Jeremy Drake via Cygwin-patches
They are exposed via the getmntent API and proc filesystem entries dealing with mounts. This allows things like `df` to show volumes that are only mounted on directories, not on drive letters. Addresses: https://cygwin.com/pipermail/cygwin/2025-February/257251.html Signed-off-by: Jeremy Drake --

[PATCH v4 3/3] Cygwin: always output cygdrive mntents.

2025-02-12 Thread Jeremy Drake via Cygwin-patches
Previously, if there was an explicit mount entry for a drive letter (say, C:), the output of the corresponding cygdrive mntent (like /cygdrive/c) would be suppressed. Once Windows directory mounts were added to cygdrive mounts, the de-duplication code got more complicated. Instead, always output t

Re: [PATCH v3 2/2] Cygwin: expose all windows volume mount points.

2025-02-12 Thread Jeremy Drake via Cygwin-patches
On Wed, 12 Feb 2025, Corinna Vinschen wrote: > Hi Jeremy, > > your patch is basically fine, and I was about to push it, when I > realized that I don't quite understand this: > > What exactly is de-duplicated here? > > I have a drive mounted under C:\drvmount. > I create an additional mount entry:

Re: [PATCH v2 1/2] Cygwin: make list of mounts for a volume in dos_drive_mappings

2025-02-12 Thread Brian Inglis
On 2025-02-12 05:33, Corinna Vinschen wrote: On Feb 11 16:13, Jeremy Drake via Cygwin-patches wrote: On Tue, 11 Feb 2025, Corinna Vinschen wrote: On Feb 10 17:13, Jeremy Drake via Cygwin-patches wrote: make mappings linked list in order rather than reverse order. Why? I'm not asking for myse

[PATCH v3 1/2] Cygwin: store list of mounts for volumes in dos_drive_mappings.

2025-02-12 Thread Jeremy Drake via Cygwin-patches
The existing code only stored the first mount for each volume, but now we store the complete list, and split it into a linked list. This will be used in a subsequent commit to populate cygdrive mount entries. Signed-off-by: Jeremy Drake --- winsup/cygwin/local_includes/mount.h | 11 --- win

[PATCH v3 2/2] Cygwin: expose all windows volume mount points.

2025-02-12 Thread Jeremy Drake via Cygwin-patches
They are exposed via the getmntent API and proc filesystem entries dealing with mounts. This allows things like `df` to show volumes that are only mounted on directories, not on drive letters. Addresses: https://cygwin.com/pipermail/cygwin/2025-February/257251.html Signed-off-by: Jeremy Drake --

Re: [PATCH v3 2/2] Cygwin: expose all windows volume mount points.

2025-02-12 Thread Jeremy Drake via Cygwin-patches
On Wed, 12 Feb 2025, Jeremy Drake via Cygwin-patches wrote: > It was *supposed* to not return the second one. Maybe I broke it when > trying to break out of the loop early... I will test this scenario and > see why it doesn't work as expected. Yeah, I never actually looked at how posix_sorted w