[OpenAFS-win32-devel] Re: Use of the Windows Registry

Meghadri Ghosh meghadri@stanford.edu
Tue, 09 Mar 2004 21:17:03 -0800


Jeffrey Altman wrote:
> Jeffrey Altman wrote:
> 
>> Meghadri Ghosh wrote:
>>
>>> Perhaps the afsdbmt.ini containing the drive mappings could be moved 
>>> to be per user.
>>>
>>> I believe the current code could be maintained by simply create the 
>>> following key: (The default value can be set to some suitable key, 
>>> perhaps under 'Software\\OpenAFS.org\\Client'?)
>>>
>>> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows 
>>> NT\CurrentVersion\IniFileMapping\afsdbmt.ini]
>>> @="#USR:Software\\OpenAFS.org\\afsdbmt
>>>
>>> Thus per user mapping settings could be maintained.
>>
>>
>> Interesting.  I will have to try this.
>>
> Unfortunately, this change is simplistic.  The AFSDSBMT.INI file is used 
> to store data
> both for the local user and the AFS Client Service.  The data stored in 
> the file is global
> but is not meant to be.  An architectural fix is going to be required to 
> separate user
> specific submounts from global submounts.
> 
> Jeffrey Altman
> 
> 
> 
> 
I need to check on this, but I think creating the registry key redirects 
existing INI file API calls to afsdbmt.ini to values in the registry 
which would be per user.

-- 
megh