QG /YeP-perl/Addons/Mountall/Background

We run into some troubles using the 'official' Cygwin mounting mechanism. But, thanks to undocumented Cygwin feature, it is possible to use alternative mounting strategy. A posting to GNU-WIN32 mailing list which discuss the problem is quoted below. Our solution goes after the quotation.

From:   Sergey Okhapkin
Sent:   Wednesday, March 04, 1998 12:07 PM
To:     gnu-win32@cygnus.com; 'Earnie Boyd'
Subject:    RE: Registry Entries??

Earnie Boyd wrote:
> In the registry of my NT 3.51 I have under HKEY_CURRENT_USER, HKEY_USERS
> keys with "Cygnus Solutions" and "Cygnus Support" which have subkeys
> that eventually point to the mounted filesystem data.  The "Cygnus
> Solutions" data is correct and the "Cygnus Support" data is not.
>

"Cygnus Support" is an old entry name for betas up to 17.1 (did you have it 
installed?)


> Also, under HKEY_LOCAL_MACHINE I have a key "Cygnus" and a key "Cygnus
> Solutions"; under "Cygnus" there is a subkey of "Cygwin32 Beta 19" and
> under that "B19"; no data exists under this key.  Under the "Cygnus

The entry was created by cygwin b19 installer.

> Solutions" we end up with mount points ranging from 00 to 1D hex with no
> data in the mount points.

It's a global mount table inheritable by all users. You can create a mount 
entries with registry editor, and every user will inherit this settings. 
The entries are very useful when running cygwin-based CGI scripts with IIS 
- IUSR_COMPUTERNAME account created by IIS is very interesting - it have no 
HKCU registry tree at all :-) So, the global table is the only way to 
provide mounts to this account. If user's mount entry have different 
settings than global one, cygwinb19.dll uses user's entry.

--
Sergey Okhapkin
Moscow, Russia
Looking for a job

Instead of hacking registry repetitively by way of regedt32, our idea is to use a kind of 'fstab', plain ASCII file containing all mounts you want to live 'forever', and mountall command that would fill that 'global mount table'. We have used this alternative mounting strategy for awhile and found it more convenient than the 'offcial' mounting strategy (for example, 'official' mounts tend to disappear from time to time). After all, one can mix both solutions. Read comments inside the mountall script from Mountall package.

Not tested with Windows 95. Have no Win95 computers at hand. Wanna become YeP-perl-for-Win95 tester?  

Find a bug? Have a suggestion? Have a business proposal? - do tell.

QG /YeP-perl/Addons/Mountall/Background