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


Corinna Vinschen wrote:
On Apr 3 20:21, Corinna Vinschen wrote:
On Apr 3 13:56, Igor Peshansky wrote:
On Thu, 3 Apr 2008, Corinna Vinschen wrote:
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...
:-)
For testing I applied a patch which creates a default root dir.

Oh, I just figured that I forgot to mention the second part of the patch (even in the ChangeLog):

The FS type field is used now to recognize the cygdrive prefix.  So,
my current local /etc/fstab file looks like this:

  $ cat /etc/fstab
  # C:\cygwin / ntfs binary 0 0
  C:\cygwin\bin /usr/bin ntfs binary 0 0
  C:\cygwin\lib /usr/lib ntfs binary 0 0
  C:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts ntfs binary 0 0
  C:\cygwin\home\corinna\textmode-dir /home/corinna/textmode-dir ntfs text 0 0
  c:\cygwin\home\corinna\managed /home/corinna/managed ntfs binary,managed 0 0
  \\fs01\archiv /home/archiv smbfs binary 0 0
  none /mnt cygdrive binary 0 0

Note especially the first entry for the root dir, which is commented out,
and the last entry for the cygdrive prefix.

Looks good to me. Before this is all done though, I expect we'll need to include an explanation before the first line explaining why it's commented. Something like:

# Commented line below represents the default '/' mount point.  To override
# this, uncomment the line and make the appropriate changes.

?

--
Larry


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