On 06/17/2013 01:01 PM, Tony Asleson wrote:
On 06/12/2013 11:57 AM, Andy Grover wrote:
> First thing: What version of lvm2 does this (or *will* this) depend on?
> Because that would need to be released and available in distros before
> we could really make use of the new feature it is providing, right? Do
> we need to check the presence of the new LVM APIs before we call them?
Not sure at the moment which version will contain this. The liblvm API
has a version method. I believe we should bump that and then add a bit
of code to verify in targetd that we are good to go for the implemented
feature set?
One other way I've seen done in Python is try to use the method and then
catch the AttributeError if it's not there. Either way, just as long as
we're able to make do on an older version of liblvm :)
-- Andy