EVMS is no longer usable this days anyway, no point in trying to see if around.
Signed-off-by: maximilian attems <[email protected]> --- packages/partconf/find-parts.c | 31 ------------------------------- 1 files changed, 0 insertions(+), 31 deletions(-) diff --git a/packages/partconf/find-parts.c b/packages/partconf/find-parts.c index fab89ef..fd143e1 100644 --- a/packages/partconf/find-parts.c +++ b/packages/partconf/find-parts.c @@ -50,36 +50,6 @@ test_lvm(struct partition *p) p->size = blocks * 512L; } -// If it's an EVMS volume, it's on the form -// /dev/evms/<volume> and there's info in -// /proc/evms/volumes -// XXX THIS IS UNTESTED XXX -static void -test_evms(struct partition *p) -{ - FILE *fp; - char buf[1024], name[1024]; - long long blocks; - int i; - - if (strstr(p->path, "/dev/evms/") != p->path) - return; - if ((fp = fopen("/proc/evms/volumes", "r")) == NULL) - return; - // Skip three lines - for (i = 0; i < 3; i++) - if (fgets(buf, sizeof(buf), fp) == NULL) - return; - while (fgets(buf, sizeof(buf), fp) != NULL) { - sscanf(buf, "%*d %*d %lld %*s %*s %s", &blocks, name); - if (strcmp(p->path, name) == 0) { - p->size = blocks * 512L; - break; - } - } - fclose(fp); -} - // RAID volumes are /dev/md/# for numbers # // Stats are found in /proc/mdstat // XXX THIS IS UNTESTED XXX @@ -265,7 +235,6 @@ get_all_partitions(struct partition *parts[], const int max_parts, bool ignore_f p->op.mountpoint = NULL; p->op.done = 0; test_lvm(p); - test_evms(p); test_raid(p); /* FIXME: Other tests? */ -- 1.7.2.3 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

