[stgt] [PATCH] dynamically link libibverbs and librdma

Pete Wyckoff pw at padd.com
Tue Sep 23 23:03:08 CEST 2008


ogerlitz at voltaire.com wrote on Tue, 23 Sep 2008 09:26 +0300:
> Pete Wyckoff wrote:
>> What about compiling libtgt-rdma.so using existing verbs, then figure out if you can dlopen() that successfully.  Maybe if you say RTLD_NOW and libverbs.so is not present, the dlopen will fail and you can fall back to non-IB mode.
>
> This is possible, that I still don't think your suggestion will relax  
> the package dependency between tgt to the verbs.

If my dlopen() suggestion works, in that it notices the lack of
libibverbs at runtime, this would work fine with RPMs:

    tgt : requires whatever it needs for tcp; provides /usr/sbin/tgtd
    tgt-rdma : requires tgt, ibverbs, rdmacm; provides libtgt-rdma.so

Base tgtd will always go looking for libtgt-rdma.so.  If it is
successful, it configures up the iSER interface, else it quietly
does only iSCSI on TCP.

I've never seen any other packages attempt this, but if this works,
it would be a lot better even than the OpenMPI situation you
described.

		-- Pete
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list