From: dj AT delorie DOT com (DJ Delorie) Subject: Re: Mount improvements finished 30 Jan 1999 16:31:16 -0800 Message-ID: <199901310017.TAA00964.cygnus.cygwin32.developers@envy.delorie.com> References: To: fujieda AT jaist DOT ac DOT jp Cc: noer AT cygnus DOT com, cygwin32-developers AT cygnus DOT com > /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).