[HEADSUP] Let's start a Cygwin 1.7 release area
Igor Peshansky
pechtcha@cs.nyu.edu
Thu Apr 3 17:56:00 GMT 2008
On Thu, 3 Apr 2008, Corinna Vinschen wrote:
> 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?
Right. Since the users can shoot themselves in the foot anyway by
overriding /bin and /etc, unless we want to litter the code with special
handling of directories, might as well let them do it at their leisure...
:-)
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"That which is hateful to you, do not do to your neighbor. That is the whole
Torah; the rest is commentary. Go and study it." -- Rabbi Hillel
More information about the Cygwin-developers
mailing list