1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Remove lv_update_write_access: use lv_reactivate directly now instead.

This commit is contained in:
Alasdair Kergon 2002-02-20 21:28:22 +00:00
parent 078cab224b
commit 14a81c5a03
2 changed files with 0 additions and 21 deletions

View File

@ -427,22 +427,6 @@ int activate_lvs_in_vg(struct volume_group *vg)
return count;
}
int lv_update_write_access(struct logical_volume *lv)
{
struct dm_info info;
if (!lv_info(lv, &info)) {
stack;
return 0;
}
if (!info.exists || info.suspended)
/* Noop */
return 1;
return lv_reactivate(lv);
}
int deactivate_lvs_in_vg(struct volume_group *vg)
{
struct list *lvh;

View File

@ -45,11 +45,6 @@ int lv_setup_cow_store(struct logical_volume *lv);
int lvs_in_vg_activated(struct volume_group *vg);
int lvs_in_vg_opened(struct volume_group *vg);
/*
* Test for (lv->status & LVM_WRITE)
*/
int lv_update_write_access(struct logical_volume *lv);
/*
* Activate all LVs in the VG. Ignore any that are already
* active. Return number actually activated.