1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Small comment and indent updates

This commit is contained in:
Zdenek Kabelac 2011-11-10 12:43:05 +00:00
parent 3eb6a4adb6
commit f0c52912f0
4 changed files with 5 additions and 4 deletions

View File

@ -4263,7 +4263,6 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct l
init_dmeventd_monitor(lp->activation_monitoring);
if (seg_is_thin(lp)) {
/* For thin snapshot suspend active thin origin first */
if (org && lv_is_active(org)) {
if (!suspend_lv(cmd, org)) {

View File

@ -346,7 +346,7 @@ int update_pool_lv(struct logical_volume *lv, int activate)
}
if (activate) {
/* If the pool was not yet activated, do it */
/* If the pool is not active, do activate deactivate */
if (!lv_is_active(lv)) {
if (!activate_lv_excl(lv->vg->cmd, lv))
return_0;

View File

@ -200,7 +200,8 @@ static int _determine_snapshot_type(struct volume_group *vg,
struct lv_list *lvl;
if (!(lvl = find_lv_in_vg(vg, lp->origin))) {
log_error("Snapshot origin LV %s not found in Volume group %s.", lp->origin, vg->name);
log_error("Snapshot origin LV %s not found in Volume group %s.",
lp->origin, vg->name);
return 0;
}
@ -222,7 +223,7 @@ static int _determine_snapshot_type(struct volume_group *vg,
/*
* Update extents parameters based on other parameters which affect the size
* calcuation.
* calculation.
* NOTE: We must do this here because of the percent_t typedef and because we
* need the vg.
*/

View File

@ -329,6 +329,7 @@ int process_each_lv(struct cmd_context *cmd, int argc, char **argv,
dm_list_iterate_items(sll, &arg_lvnames) {
const char *vg_name = sll->str;
const char *lv_name = strchr(vg_name, '/');
log_error("VGNAME strdup %p %s %s", lv_name, vg_name, vgname);
if ((!lv_name && !strcmp(vg_name, vgname))) {
/* Process all LVs in this VG */