[stgt] [PATCH] Make the backing-store modules shared objects that are loaded at runtime

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Mon Aug 19 00:57:37 CEST 2013


On Sat, 10 Aug 2013 02:33:44 -0700
Ronnie Sahlberg <ronniesahlberg at gmail.com> wrote:

> Turn most of TGTD into a shared library libtgt.so and install it under
> $(PREFIX)/lib/tgtd

What does this mean? Why we need libtgt.so?

> Change the six backing stores  bs_aio/null/rbd/rdwr/sg/ssc into shared objec
> and install them under $(PREFIX)/lib/tgtd/backing-store
> 
> When tgtd is starting, have it traverse the directory for backing stores and
> automatically load and initialize all backing stores files that are found.
> 
> This allows for example to distribute bs_aio.so as a separate package
> since it has additional dependencies (libaio) that tgtd itself does not have
> Similarly for bs_rbd.so.
> This means that core TGTD can be distributed with minimal dependencies
> and backends that add additional dependencies can be distributed separately.
> 
> Once we have this basics for a modularized TGTD later patches can build onto
> of this and add features such as :
> * list all modules and which luns are using them
> * unload module if unused
> * re-load module
> But that can come in later patches. Lets get the basics in first.

I understand why some people this feature. I'm not a big fan of C
dynamic loading feature though. I don't merge unloading/reloading
feature. These features are not what the people are looking for
anyway.
--
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