[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] vgremove stops with Segmentation fault



Hi.

The 'vgremove' executable in LVM 0.8final refers to unused pointer variable.

--- lvm-0.8j.final.orig/tools/vgremove.c
+++ lvm-0.8j.final/tools/vgremove.c
@@ -70,7 +70,6 @@
    };
    char *vg_name = NULL;
    vg_t *vg = NULL;
-   pv_t **pv = NULL;
 
    cmd = basename ( argv[0]);
 
@@ -195,7 +194,7 @@
                                cmd, vg_name);
       for ( p = 0; vg->pv[p] != NULL; p++) {
          if ( opt_v > 0) printf ( "%s -- initializing physical volume \"%s\"\n",
-                                  cmd, pv[p]->pv_name);
+                                  cmd, vg->pv[p]->pv_name);
          if ( ( ret = pv_setup_for_create ( vg->pv[p]->pv_name, vg->pv[p],
                                             vg->pv[p]->pv_size)) < 0) {
             fprintf ( stderr, "%s -- ERROR \"%s\" initializing physical "

-- 
//  HIBINO Kei
//  ex8k-hbn asahi-net or jp


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]