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)
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,