diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c index f20ea4bee..9f9d0ba5d 100644 --- a/lib/cache/lvmcache.c +++ b/lib/cache/lvmcache.c @@ -191,21 +191,6 @@ static void _destroy_device_list(struct dm_list *head) dm_list_init(head); } -bool lvmcache_has_bad_metadata(struct device *dev) -{ - struct lvmcache_info *info; - - if (!(info = lvmcache_info_from_pvid(dev->pvid, dev, 0))) { - /* shouldn't happen */ - log_error("No lvmcache info for checking bad metadata on %s", dev_name(dev)); - return false; - } - - if (info->mda1_bad || info->mda2_bad) - return true; - return false; -} - void lvmcache_save_bad_mda(struct lvmcache_info *info, struct metadata_area *mda) { if (mda->mda_num == 1) diff --git a/lib/cache/lvmcache.h b/lib/cache/lvmcache.h index 7dde3cda3..eccf29eb2 100644 --- a/lib/cache/lvmcache.h +++ b/lib/cache/lvmcache.h @@ -186,8 +186,6 @@ int lvmcache_vginfo_has_pvid(struct lvmcache_vginfo *vginfo, const char *pvid_ar uint64_t lvmcache_max_metadata_size(void); void lvmcache_save_metadata_size(uint64_t val); -bool lvmcache_has_bad_metadata(struct device *dev); - bool lvmcache_has_old_metadata(struct cmd_context *cmd, const char *vgname, const char *vgid, struct device *dev); void lvmcache_get_outdated_devs(struct cmd_context *cmd,