Skip to contentSkip to conversation

pv_read_all_pv_of_vg.c

linux-lvm Jan Niehusmann 1 participant 1 message Dec 22, 2000

lore
Share & tools
lore
#0 lore raw

I found the following lines in pv_read_all_pv_of_vg.c: (line 183ff)

      /* Check for contiguous PV array */
      for ( p = 0; pv_this[p] != NULL; p++)
         if ( pv_this[p] == NULL && p < np)
            ret = -LVM_EPV_READ_ALL_PV_OF_VG_NP_SORT;

the if condition can never be true, because of the condition in the for statement. I don't think this does what it should do...

Jan