master - lvcreate: vdo support
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c58733ca1538d04a298c4c857492ca544a820064 Commit: c58733ca1538d04a298c4c857492ca544a820064 Parent: 6945bbdbc6f997568707594b4b930f3551893910 Author: Zdenek Kabelac <[email protected]> AuthorDate: Fri Jun 29 13:16:08 2018 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Jul 9 15:29:12 2018 +0200
lvcreate: vdo support
Supports basic: 'lvcreate --vdo -LXXXG -VYYYG vg/vdoname -n lvname' Allows to create basic VDO pool volume and virtual VDO volume.
--- WHATS_NEW | 1 + lib/metadata/metadata-exported.h | 3 + lib/metadata/vdo_manip.c | 53 ++++++++++++++++++++++++++ tools/command-lines.in | 26 +++++++++++++ tools/lvcreate.c | 76 +++++++++++++++++++++++++++++++++++--- 5 files changed, 153 insertions(+), 6 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 3.0.0 ============= + Add basic creation support for VDO target. Never send any discard ioctl with test mode. Fix thin-pool alloc which needs same PV for data and metadata. Extend list of non-memlocked areas with newly linked libs.
lib/metadata/metadata-exported.h +3 -0
@@ -1270,6 +1270,9 @@ struct logical_volume *convert_vdo_pool_lv(struct logical_volume *data_lv,const struct dm_vdo_target_params *vtp, uint32_t *virtual_extents);int get_vdo_write_policy (enum dm_vdo_write_policy *vwp,const char *policy); +int fill_vdo_target_params (struct cmd_context *cmd, +struct dm_vdo_target_params *vtp, +struct profile *profile);/* -- metadata/vdo_manip.c */ struct logical_volume *find_pvmove_lv(struct volume_group *vg,
lib/metadata/vdo_manip.c +53 -0
56 lines not on this page · raw message
tools/command-lines.in +26 -0
@@ -731,6 +731,7 @@ OO_LVCREATE_POOL: --poolmetadatasize SizeMB, --poolmetadataspare Bool, --chunksi OO_LVCREATE_THIN: --discards Discards, --errorwhenfull Bool +OO_LVCREATE_VDO: --compression Bool, --deduplication Bool --- lvcreate --type error --size SizeMB VG
@@ -741,6 +742,31 @@ FLAGS: SECONDARY_SYNTAX --- +lvcreate --type vdo --size SizeMB VG +OO: --vdo, OO_LVCREATE, OO_LVCREATE_VDO, --virtualsize SizeMB, --stripes Number, --stripesize SizeKB, +OP: PV ... +IO: --mirrors 0 +ID: lvcreate_vdo_vol +DESC: Create an LV that returns VDO when used. + +lvcreate --vdo --size SizeMB VG +OO: OO_LVCREATE, OO_LVCREATE_VDO, --virtualsize SizeMB, --stripes Number, --stripesize SizeKB +OP: PV ... +IO: --mirrors 0 +ID: lvcreate_vdo_vol +DESC: Create an VDO LV with VDO pool. +FLAGS: SECONDARY_SYNTAX + +lvcreate --vdopool LV --virtualsize SizeMB VG +OO: --vdo, --type vdo +OP: PV ... +IO: --mirrors 0 +ID: lvcreate_vdo_vol +DESC: Create an VDO LV using existing VDO pool. +FLAGS: SECONDARY_SYNTAX + +--- + lvcreate --type zero --size SizeMB VG OO: OO_LVCREATE ID: lvcreate_zero_vol
tools/lvcreate.c +70 -6
147 lines not on this page · raw message