Skip to contentSkip to conversation

master - cache: improve creation code

PATCH Zdenek Kabelac 1 participant 1 message Oct 6, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d46c2f1c946e21393537a730eaa624665cb96bbc
Commit:        d46c2f1c946e21393537a730eaa624665cb96bbc
Parent:        189d0f8e1deb2ad8b985696d9925f5259ab30baa
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Oct 3 23:51:54 2014 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Oct 6 15:18:06 2014 +0200

cache: improve creation code

Move code to better locations.
Improve test and remove invalid ones
(i.e. no reason to require cache size to be >= then origin).

Correctly comment where the code is doing actual conversion of other existing volume - we do already a similar thing with external origins.

Lots of new command line options and combinations is now supported. Hopefully older syntax still works as well.

lvcreate --cache --cachepool vg/pool -l1
lvcreate --type cache --cachepool vg/pool -l1
lvcreate --type cache-pool vg/pool -l1
lvcreate --type cache-pool --name pool vg -l1
... and many many more ...

---
 WHATS_NEW               |    1 +
 lib/metadata/lv_manip.c |  189 ++++++++++++++++++++++++----------------------
 tools/lvcreate.c        |  116 +++++++++++++++++++----------
 3 files changed, 175 insertions(+), 131 deletions(-)
WHATS_NEW +1 -0
index 8a4fa13..0ffb048 100644
@@ -1,5 +1,6 @@
 Version 2.02.112 - 
 =====================================
+  Improve code for creation of cache and cache pool volumes.
   Check cluster-wide (not local) active status before removing LV.
   Properly check if activation of removed cached LV really activated.
   Lvremoving cached LV removes cachepool (keep with lvconvert --splitcache).
lib/metadata/lv_manip.c +99 -90

250 lines not on this page · raw message

tools/lvcreate.c +75 -41

167 lines not on this page · raw message