mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-22 06:50:52 +03:00
better variable name for snapshot counting
This commit is contained in:
parent
8b65ad0237
commit
5a945afdc6
@ -1156,13 +1156,13 @@ unsigned displayable_lvs_in_vg(const struct volume_group *vg)
|
||||
unsigned snapshot_count(const struct volume_group *vg)
|
||||
{
|
||||
struct lv_list *lvl;
|
||||
unsigned lv_count = 0;
|
||||
unsigned num_snapshots = 0;
|
||||
|
||||
dm_list_iterate_items(lvl, &vg->lvs)
|
||||
if (lv_is_cow(lvl->lv))
|
||||
lv_count++;
|
||||
num_snapshots++;
|
||||
|
||||
return lv_count;
|
||||
return num_snapshots;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user