]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: remove EVMS support
authorKarel Zak <kzak@redhat.com>
Wed, 30 Jun 2021 09:35:45 +0000 (11:35 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 30 Jun 2021 09:35:45 +0000 (11:35 +0200)
"When you discover you're riding a dead horse, the best strategy is to dismount."

EVMS is dead since 2006, LVM is the winner.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/devname.c

index c541d30ba6a78fd824b28f9e4fe57715ea09a802..5b445b011499bec65abd0b76e2220fd8c7c7c455 100644 (file)
@@ -366,35 +366,6 @@ exit:
 }
 #endif
 
-#define PROC_EVMS_VOLUMES "/proc/evms/volumes"
-
-static int
-evms_probe_all(blkid_cache cache, int only_if_new)
-{
-       char line[100];
-       int ma, mi, sz, num = 0;
-       FILE *procpt;
-       char device[110];
-
-       procpt = fopen(PROC_EVMS_VOLUMES, "r" UL_CLOEXECSTR);
-       if (!procpt)
-               return 0;
-       while (fgets(line, sizeof(line), procpt)) {
-               if (sscanf (line, " %d %d %d %*s %*s %[^\n ]",
-                           &ma, &mi, &sz, device) != 4)
-                       continue;
-
-               DBG(DEVNAME, ul_debug("Probe EVMS partition %s (%d, %d)",
-                                         device, ma, mi));
-
-               probe_one(cache, device, makedev(ma, mi), BLKID_PRI_EVMS,
-                         only_if_new, 0);
-               num++;
-       }
-       fclose(procpt);
-       return num;
-}
-
 static void
 ubi_probe_all(blkid_cache cache, int only_if_new)
 {
@@ -570,8 +541,6 @@ static int probe_all(blkid_cache cache, int only_if_new)
                return 0;
 
        blkid_read_cache(cache);
-
-       evms_probe_all(cache, only_if_new);
 #ifdef VG_DIR
        lvm_probe_all(cache, only_if_new);
 #endif