diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 5e3327da7..c215a3bdd 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -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; diff --git a/lib/activate/activate.h b/lib/activate/activate.h index 96e510ee2..e041a2c29 100644 --- a/lib/activate/activate.h +++ b/lib/activate/activate.h @@ -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.