Mail Archives: cygwin-developers/1999/01/30/06:54:33
>>> On Wed, 27 Jan 1999 14:47:16 -0800
>>> Geoffrey Noer <noer AT cygnus DOT com> said:
> Any comments are welcome, especially bug reports.
I don't like an automount often overrides flags of a normal
mount. For example, I mount D:/binary to /binary with binmode.
~$ mount
Device Directory Type Flags
D:\binary /binary user binmode
C: / user binmode
Then I change the current directory to `d:'.
~ $ cd d:
/cygdrive/d $ mount
Device Directory Type Flags
d: /cygdrive/d user,auto textmode
D:\binary /binary user binmode
C: / user binmode
Now /binary is handled with textmode !!
So I propose specifically setting the priority of automounts
lower than normal one like the following patch.
--- path.cc- Sat Jan 30 23:15:00 1999
+++ path.cc Sat Jan 30 23:15:14 1999
@@ -1398,6 +1398,9 @@ sort_by_name (const void *a, const void
mount_item *ap = (mount_item *) a;
mount_item *bp = (mount_item *) b;
+ if ((ap->flags ^ bp->flags) & MOUNT_AUTO)
+ return (bp->flags & MOUNT_AUTO) ? -1 : 1;
+
int res = strcmp (bp->posix_path, ap->posix_path);
if (res == 0)
____
| AIST Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
| HOKURIKU School of Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology
- Raw text -