From 0c409b7b5457ac7341a4046c63b61d0bbce6b81c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 30 Jun 2021 11:35:45 +0200 Subject: [PATCH] libblkid: remove EVMS support "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 --- libblkid/src/devname.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/libblkid/src/devname.c b/libblkid/src/devname.c index c541d30ba..5b445b011 100644 --- a/libblkid/src/devname.c +++ b/libblkid/src/devname.c @@ -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