]> sourceware.org Git - lvm2.git/commitdiff
cleanup: remove lvmcache_has_bad_metadata 1233750082
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 29 Mar 2024 14:42:38 +0000 (15:42 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 29 Mar 2024 23:17:39 +0000 (00:17 +0100)
lib/cache/lvmcache.c
lib/cache/lvmcache.h

index f20ea4bee8d6519d16d6ebc217f90f542a4f2cd2..9f9d0ba5da2e9db72fa60a82ce113b9d51c64dfa 100644 (file)
@@ -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)
index 7dde3cda330ef84aa84c1e96741d80f1afeb5542..eccf29eb248d42e7c27e0e55eb2eca7612b83bd8 100644 (file)
@@ -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,
This page took 0.036821 seconds and 5 git commands to generate.