View | Details | Raw Unified
Collapse All | Expand All

(-) LVM.orig/1.0.7/tools/lib/pv_read_all_pv_of_vg.c (-1 / +1 lines)
 Lines 129-136    Link Here 
                             UUID_LEN) == 0) goto uuid_check_end;
                             UUID_LEN) == 0) goto uuid_check_end;
            }
            }
            pv_this[p] = NULL;
            pv_this[p] = NULL;
uuid_check_end:
         }
         }
uuid_check_end:
         for ( pp = 0; pp < p - 2; pp++) {
         for ( pp = 0; pp < p - 2; pp++) {
            if ( pv_this[pp] == NULL) {
            if ( pv_this[pp] == NULL) {
               pv_this[pp] = pv_this[pp+1];
               pv_this[pp] = pv_this[pp+1];
(-) LVM.orig/1.0.7/tools/lib/pv_read_uuidlist.c (-1 / +1 lines)
 Lines 50-56    Link Here 
   static char *this_pv_uuidlist = NULL;
   static char *this_pv_uuidlist = NULL;
   int num;
   int num;
   debug_enter(__FUNCTION__ " -- CALLED with %s\n", pv ? pv->pv_name : "NULL");
   debug_enter(__FUNCTION__, " -- CALLED with %s\n", pv ? pv->pv_name : "NULL");
   if (pv == NULL || pv_uuidlist == NULL)
   if (pv == NULL || pv_uuidlist == NULL)
      return -LVM_EPARAM;
      return -LVM_EPARAM;
(-) LVM.orig/1.0.7/tools/lib/pv_write_uuidlist.c (-1 / +1 lines)
 Lines 71-77    Link Here 
            /* Create/fix UUIDs for any PVs that need it */
            /* Create/fix UUIDs for any PVs that need it */
            if (lvm_check_uuid(pv->pv_uuid) < 0) {
            if (lvm_check_uuid(pv->pv_uuid) < 0) {
               debug(__FUNCTION__ " -- creating new UUID for PV %s\n",
               debug(__FUNCTION__, " -- creating new UUID for PV %s\n",
                     pv->pv_name);
                     pv->pv_name);
               memset(pv->pv_uuid, 0, sizeof(pv->pv_uuid));
               memset(pv->pv_uuid, 0, sizeof(pv->pv_uuid));
               memcpy(pv->pv_uuid, lvm_create_uuid(UUID_LEN), UUID_LEN);
               memcpy(pv->pv_uuid, lvm_create_uuid(UUID_LEN), UUID_LEN);