Come now, it really isn't that difficult:
char name[80];
unsigned long long size;
unsigned int major, minor;
if (sscanf(line, "%4u %4u %llu %s", &major, &minor, &size, name) == 4)
{
add_partition(name, size, major, minor);
}
-Erik
-- Erik B. Andersen http://codepoet-consulting.com/ --This message was written using 73% post-consumer electrons-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/