1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvcreate: better logging for temporary device

Hide creation of temporary LVs and print them only in verbose mode.

e.g. hides confusing message about creation of _pmspare
device during creation of pool.
This commit is contained in:
Zdenek Kabelac 2014-10-20 21:53:48 +02:00
parent 2c057f33f3
commit f7cfea251c
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.112 -
=====================================
Inform about temporarily created volumes only in verbose mode.
Better support for --test mode with pool creation.
Query lock holding LV when replacing and converting raid volumes.
Add extra validate for locked lv within validate_lv_cache_create().

View File

@ -7217,7 +7217,10 @@ struct logical_volume *lv_create_single(struct volume_group *vg,
return_NULL;
out:
log_print_unless_silent("Logical volume \"%s\" created", lv->name);
if (lp->temporary)
log_verbose("Temporary logical volume \"%s\" created.", lv->name);
else
log_print_unless_silent("Logical volume \"%s\" created.", lv->name);
return lv;
}