This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [HEADSUP] Let's start a Cygwin 1.7 release area


On Apr  3 19:12, Corinna Vinschen wrote:
> On Apr  3 12:59, Christopher Faylor wrote:
> > But if we were doing this the "right way" then I think we probably
> > should have a procfs and something else which allowed the automatic
> > mounting of devices like floppies or usb disks.
> 
> I see.  I did the evaluation of a mount point being something automatic
> by using a string in the first field, but actually we should use
> specific strings in the FS type field and either ignore the content of
> the first field - for FS types like "cygdrive", "proc" (later) "root",
> "sysfs" (much later) - or the first field is the device which gets mounted
> in the second dir if the mount point is "auto".  Sort of a better cygdrive.
> I'll change the fstab stuff to do the FS type recognition for cygdrive
> and root.  We can then add the "auto" and "proc" stuff easily at some
> later point.

On second thought, I think we don't need a specific "root" handling as
in

  ignore / root binary 0 0 

I think what we should do is this.  The code creating the mount points
automatically generates the root directory mount entry from the DLL path:

  path = GetModuleFileName (cygwin1.dll);
  path = snip_away trailing_bin_cygwin1.dll (path);
  mount_table->add_item (path, "/", MOUNT_SYSTEM | MOUNT_BINARY, false);

Then, when reading the fstab file, it might contain any standard entry
for the root dir, just like every other entry:

  C:\my\alterante\cygwin-root / ntfs text 0 0

How does that sound?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]