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

Remove unused fns.

This commit is contained in:
Alasdair Kergon 2002-03-04 14:27:25 +00:00
parent 3a84c18bdd
commit 3bf898526a

View File

@ -238,34 +238,6 @@ int lv_rename(const char *old_name, struct logical_volume *lv)
#endif
}
int activate_lvs_in_vg(struct volume_group *vg)
{
struct list *lvh;
struct logical_volume *lv;
int count = 0;
list_iterate(lvh, &vg->lvs) {
lv = list_item(lvh, struct lv_list)->lv;
count += (!lv_active(lv) && lv_activate(lv));
}
return count;
}
int deactivate_lvs_in_vg(struct volume_group *vg)
{
struct list *lvh;
struct logical_volume *lv;
int count = 0;
list_iterate(lvh, &vg->lvs) {
lv = list_item(lvh, struct lv_list)->lv;
count += ((lv_active(lv) == 1) && lv_deactivate(lv));
}
return count;
}
/*
* These two functions return the number of LVs in the state,
* or -1 on error.