Mail Archives: cygwin-developers/1999/01/30/16:31:16
> /cygdrive/d $ mount
> Device Directory Type Flags
> d: /cygdrive/d user,auto textmode
> D:\binary /binary user binmode
> C: / user binmode
Geoff - is this list sorted in the same order we scan them? If so, we
need to store it sorted both by posix path and separately by win32
path. When we convert from a win32 path to a posix path, we need to
search the *win32* paths longest first. Simply reusing the list
sorted by posix path lengths isn't going to work.
Also, the automounted drive should have been binmode due to the C:
mount being binmode.
I also suggest that mount.exe print the paths sorted by posix paths
(alphabetical, not by length, case insensitive), so that "/" is first.
> So I propose specifically setting the priority of automounts lower
> than normal one like the following patch.
While this would avoid the problem it's not the right solution, since
it doesn't fix the problem as it is, which I think is caused by the
way we sort and scan the internal tables (it's an optimization).
- Raw text -