1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Rename a couple of variables that matched function names.

This commit is contained in:
Alasdair Kergon 2008-11-03 16:26:27 +00:00
parent 7e3fe8305d
commit 965566dcf0
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.43 -
===================================
Rename a couple of variables that matched function names.
Use simplified x.y.z version number in libdevmapper.pc.
Merge device-mapper into the lvm2 tree.
Remove ancient debian directory.

View File

@ -277,12 +277,12 @@ static int _check_lvd(struct lv_disk *lvd)
static int _read_lvs(struct disk_list *data)
{
unsigned int i, read = 0;
unsigned int i, lvs_read = 0;
uint64_t pos;
struct lvd_list *ll;
struct vg_disk *vgd = &data->vgd;
for (i = 0; (i < vgd->lv_max) && (read < vgd->lv_cur); i++) {
for (i = 0; (i < vgd->lv_max) && (lvs_read < vgd->lv_cur); i++) {
pos = data->pvd.lv_on_disk.base + (i * sizeof(struct lv_disk));
ll = dm_pool_alloc(data->mem, sizeof(*ll));
@ -295,7 +295,7 @@ static int _read_lvs(struct disk_list *data)
if (!_check_lvd(&ll->lvd))
continue;
read++;
lvs_read++;
list_add(&data->lvds, &ll->list);
}