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:
parent
7e3fe8305d
commit
965566dcf0
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.43 -
|
Version 2.02.43 -
|
||||||
===================================
|
===================================
|
||||||
|
Rename a couple of variables that matched function names.
|
||||||
Use simplified x.y.z version number in libdevmapper.pc.
|
Use simplified x.y.z version number in libdevmapper.pc.
|
||||||
Merge device-mapper into the lvm2 tree.
|
Merge device-mapper into the lvm2 tree.
|
||||||
Remove ancient debian directory.
|
Remove ancient debian directory.
|
||||||
|
@ -277,12 +277,12 @@ static int _check_lvd(struct lv_disk *lvd)
|
|||||||
|
|
||||||
static int _read_lvs(struct disk_list *data)
|
static int _read_lvs(struct disk_list *data)
|
||||||
{
|
{
|
||||||
unsigned int i, read = 0;
|
unsigned int i, lvs_read = 0;
|
||||||
uint64_t pos;
|
uint64_t pos;
|
||||||
struct lvd_list *ll;
|
struct lvd_list *ll;
|
||||||
struct vg_disk *vgd = &data->vgd;
|
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));
|
pos = data->pvd.lv_on_disk.base + (i * sizeof(struct lv_disk));
|
||||||
ll = dm_pool_alloc(data->mem, sizeof(*ll));
|
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))
|
if (!_check_lvd(&ll->lvd))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
read++;
|
lvs_read++;
|
||||||
list_add(&data->lvds, &ll->list);
|
list_add(&data->lvds, &ll->list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user