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 <kzak@redhat.com>
This commit is contained in:
parent
81d6de9166
commit
0c409b7b54
|
@ -366,35 +366,6 @@ exit:
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
static void
|
||||||
ubi_probe_all(blkid_cache cache, int only_if_new)
|
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;
|
return 0;
|
||||||
|
|
||||||
blkid_read_cache(cache);
|
blkid_read_cache(cache);
|
||||||
|
|
||||||
evms_probe_all(cache, only_if_new);
|
|
||||||
#ifdef VG_DIR
|
#ifdef VG_DIR
|
||||||
lvm_probe_all(cache, only_if_new);
|
lvm_probe_all(cache, only_if_new);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue