Skip to contentSkip to conversation

lvmcache and lvmetad

PATCH New Petr Rockai 1 participant 2 messages Oct 24, 2011 – Nov 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lvmcache and lvmetad

Hi,

I have been working on isolating lvmcache code from the rest of the codebase. I am making progress slowly, since this is very tedious and very error-prone. A lot of code is copied out around the code base and cache internals are manipulated all over the place. I am attaching my current state of the matters, which do not yet compile. When you expose the internal structures, you can get things to compile though and pass the tests as well. I will continue drilling down while trying to avoid any new bugs.

The plan is to, when the lvmcache is finally walled off, to create a new implementation (of the APIs) that only does the bare minimum to get LVM going and passing the testsuite. The following step would then be to factor this functionality out of lvmcache altogether, as far as that turns out to be possible. After that is done, finally, I can resume work on integrating lvmetad, which has been so far blocked out by lvmcache mis-design. In the meantime, I'll try to integrate some lvmetad tests into the suite (the daemon can be tested even without full LVM support).

Yours,
Petr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvmcache.diff
Type: text/x-diff
Size: 39299 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20111024/8036749b/attachment.bin>
-------------- next part --------------

Signature · 1 line
id' Ash = Ash; id' Dust = Dust; id' _ = undefined
#1 lore raw

PATCH 1/1 lvmcache and lvmetad, part 1: isolation of lvmcache

Hi,

Quoted 8 lines · Petr Rockai

The plan is to, when the lvmcache is finally walled off, to create a new implementation (of the APIs) that only does the bare minimum to get LVM going and passing the testsuite. The following step would then be to factor this functionality out of lvmcache altogether, as far as that turns out to be possible. After that is done, finally, I can resume work on integrating lvmetad, which has been so far blocked out by lvmcache mis-design. In the meantime, I'll try to integrate some lvmetad tests into the suite (the daemon can be tested even without full LVM support).

the attached patch is a final version of the walling-off of lvmcache, and should make the next step possible, that is, remodeling the data representation behind the current API. The API may need to be adjusted in the process somewhat, but hopefully not very wildly.

The version after this patch should compile and pass the testsuite without further ado.

Yours,
Petr

PS: In case anyone already looked at the previous version of this patch, it should be possible to get a reasonable interdiff from this one.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvmcache-1.diff
Type: text/x-diff
Size: 57217 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20111107/f483305e/attachment.bin>
-------------- next part --------------

Signature · 1 line
id' Ash = Ash; id' Dust = Dust; id' _ = undefined