mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
integrity: hide creation of internal LVs
Creation of 'hidden' local LVs should be visible only in verbose mode (-v) when creating a raid LV with integrity.
This commit is contained in:
parent
390ff5be2f
commit
51117b5793
@ -99,6 +99,7 @@ static int _lv_create_integrity_metadata(struct cmd_context *cmd,
|
|||||||
.read_ahead = DM_READ_AHEAD_NONE,
|
.read_ahead = DM_READ_AHEAD_NONE,
|
||||||
.stripes = 1,
|
.stripes = 1,
|
||||||
.vg_name = vg->name,
|
.vg_name = vg->name,
|
||||||
|
.temporary = 1,
|
||||||
.zero = 0,
|
.zero = 0,
|
||||||
.wipe_signatures = 0,
|
.wipe_signatures = 0,
|
||||||
.suppress_zero_warn = 1,
|
.suppress_zero_warn = 1,
|
||||||
@ -118,8 +119,8 @@ static int _lv_create_integrity_metadata(struct cmd_context *cmd,
|
|||||||
meta_sectors = meta_bytes / 512;
|
meta_sectors = meta_bytes / 512;
|
||||||
lp_meta.extents = meta_sectors / vg->extent_size;
|
lp_meta.extents = meta_sectors / vg->extent_size;
|
||||||
|
|
||||||
log_print_unless_silent("Creating integrity metadata LV %s with size %s.",
|
log_verbose("Creating integrity metadata LV %s with size %s.",
|
||||||
metaname, display_size(cmd, meta_sectors));
|
metaname, display_size(cmd, meta_sectors));
|
||||||
|
|
||||||
dm_list_init(&lp_meta.tags);
|
dm_list_init(&lp_meta.tags);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user