[openib-general] OFED 1.2 dapl and dat.conf

Doug Ledford dledford at redhat.com
Tue Feb 20 06:48:08 PST 2007


On Tue, 2007-02-20 at 09:29 -0500, James Lentini wrote:
> 
> On Fri, 16 Feb 2007, Arlin Davis wrote:
> 
> > Doug Ledford wrote:
> > 
> > > On Wed, 2007-02-14 at 13:26 -0800, Arlin Davis wrote:
> > >  
> > > > Steve Wise wrote:
> > > > 
> > > >    
> > > > > Currently, the dapl rpms don't install dat.conf.  I think they probably
> > > > > should, eh?  Maybe in <prefix>/etc/dat.conf
> > > > > 
> > > > > 
> > > > >      
> > > > my specfile is setup to target sysconfdir which is typically set to
> > > > `$(prefix)/etc'
> > > > 
> > > > %{_sysconfdir}/dat.conf
> > > > 
> > > > I am not sure how the 1.2 scripts are building the rpms. Maybe Vladimir
> > > > can help explain?
> > > >    
> > > 
> > > Note that this setup is problematic on multilib arches.  Since the
> > > dat.conf file hard codes a library path that's different for 32bit/64bit
> > > arches, installing both a 32bit and 64bit dapl library is impossible
> > > without munging things.
> > > 
> > > For RHEL4U5/RHEL5 I changed the dat library to read dat<bits>.conf and
> > > have two separate conf files.  A probably better approach would be to
> > > change the library to use a relative library name that it looks for
> > > starting from the libraries own directory.  Hence if the dapl library is
> > > in /usr/lib, it looks in /usr/lib.  Doing that would allow the
> > > 32bit/64bit libraries to share the same config file.
> > > 
> > >  
> > This is a good idea. I will take a look at dladdr options to set 
> > appropriate starting path for dapl libraries when absolute paths are 
> > not specified.
> > 
> > James, do you see any issues with this approach?
> 
> Nope. The dat registry should be able to handle provider libraries at 
> any location in the file namespace (provided they are accessible of 
> course).

Yep.  Although if you want the 64bit and 32bit dat.conf to be identical,
then the best bet would be something like putting the main library
in /usr/lib or /usr/lib64 and then doing a relative path from there to
the provider libs, such as dapl/provider/libname.so.  That way, the same
filespec in the dat.conf file will find either the 64bit or 32bit
provider lib depending on whether the 64bit or 32bit main library is the
one searching for it.

> > Vladimir, can you tell me how the OFED 1.2 install scripts are 
> > handling the dat.conf?
> > 
> > -arlin
> > 
-- 
Doug Ledford <dledford at redhat.com>
              GPG KeyID: CFBFF194
              http://people.redhat.com/dledford

Infiniband specific RPMs available at
              http://people.redhat.com/dledford/Infiniband
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20070220/27344ff6/attachment.sig>


More information about the general mailing list