Skip to contentSkip to conversation

master - thin: lvconvert update

PATCH Zdenek Kabelac 1 participant 1 message Nov 19, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b21d3e3592e380cb79e5e45f2aa8164ae0747e15
Commit:        b21d3e3592e380cb79e5e45f2aa8164ae0747e15
Parent:        b78609686399ee01a53d8a2e8685cd05389d8cc9
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Nov 19 13:37:57 2012 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Nov 19 14:38:17 2012 +0100

thin: lvconvert update

Use common function from toollib and support allocation of metadata LV with give thin pool data LV.

---
 WHATS_NEW         |    1 +
 tools/commands.h  |    7 ++-
 tools/lvconvert.c |  162 +++++++++++++++++++++++++++++------------------------
 3 files changed, 94 insertions(+), 76 deletions(-)
WHATS_NEW +1 -0
index 59a69da..84afb82 100644
@@ -1,5 +1,6 @@
 Version 2.02.99 - 
 ===================================
+  Support allocation of pool metadata with lvconvert command.
   Move common functionality for thin lvcreate and lvconvert to toollib.
   Mirrored log is now fixed before its mirror when double-fault occurs.
   Add python-lvm unit test case
tools/commands.h +5 -2
index 6415d34..8d5d190 100644
@@ -147,13 +147,16 @@ xx(lvconvert,
    "--thinpool ThinPoolLogicalVolume[Path]\n"
    "\t[--chunksize size]\n"
    "\t[--discards {ignore|nopassdown|passdown}]\n"
-   "\t[[--poolmetadatasize size] | --poolmetadata ThinMetadataLogicalVolume[Path]]\n"
+   "\t[--poolmetadata ThinMetadataLogicalVolume[Path] |\n"
+   "\t [--poolmetadatasize size]\n"
+   "\t [-r|--readahead ReadAheadSectors|auto|none]\n"
+   "\t [--stripes Stripes [-I|--stripesize StripeSize]]]\n"
    "\t[-Z|--zero {y|n}]\n"
    "\t[-d|--debug] [-h|-?|--help] [-v|--verbose]\n",
 
    alloc_ARG, background_ARG, chunksize_ARG, corelog_ARG, interval_ARG,
    merge_ARG, mirrorlog_ARG, mirrors_ARG, name_ARG, noudevsync_ARG,
-   regionsize_ARG, repair_ARG, replace_ARG, snapshot_ARG, splitmirrors_ARG,
+   readahead_ARG, regionsize_ARG, repair_ARG, replace_ARG, snapshot_ARG, splitmirrors_ARG,
    trackchanges_ARG, type_ARG, stripes_long_ARG, stripesize_ARG, test_ARG,
    chunksize_ARG, discards_ARG, poolmetadata_ARG, poolmetadatasize_ARG, thinpool_ARG,
    use_policies_ARG, yes_ARG, force_ARG, zero_ARG)
tools/lvconvert.c +88 -74

216 lines not on this page · raw message