]> sourceware.org Git - lvm2.git/commitdiff
Small comment and indent updates
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 10 Nov 2011 12:43:05 +0000 (12:43 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 10 Nov 2011 12:43:05 +0000 (12:43 +0000)
lib/metadata/lv_manip.c
lib/metadata/thin_manip.c
tools/lvcreate.c
tools/toollib.c

index 04ebfc87d59a15df4361afad2117c63acb3adbd7..4f7104d2a08ed1eea45bc2e0687bf7c82dc839e3 100644 (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)) {
index 7a2c160b36f969a66a38545177beecb85bb913f8..56e50955ee7a7944b1052e4fa5f8ba575f53f8cc 100644 (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;
index 9c6150cef2f924dd375412a424bebd0aeb524942..d079c1c9ab317e39683e60ce13967904df08374f 100644 (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.
  */
index aba52dc2dc5e9a1de07da83cdf747f6677e98153..b9c4d6a6560ed8094b417cbde8c31812014cda05 100644 (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 */
This page took 0.045237 seconds and 5 git commands to generate.