delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/01/30/06:54:33

From: fujieda AT jaist DOT ac DOT jp (Kazuhiro Fujieda)
Subject: Re: Mount improvements finished
30 Jan 1999 06:54:33 -0800 :
Message-ID: <wksocs9747.fsf.cygnus.cygwin32.developers@indra.will.or.jp>
References: <19990127144716 DOT B9708 AT cygnus DOT com>
Mime-Version: 1.0 (generated by SEMI MIME-Edit 0.100 - "Shijima")
To: Geoffrey Noer <noer AT cygnus DOT com>
Cc: cygwin32-developers AT cygnus DOT com

>>> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019