Hi,
On Fri, 2 Aug 2002, Mike Touloumtzis wrote:
> fprintf(f, "%u %u %u%c", foo, bar, baz, '\0');
Yes, that's crap... However, what about the following partition table
format:
<size>\0<part1>\n<part2>\n<part...>\n<partn>\0
Size represents the complete size of the partition table. partx defines
the partitions that we have, part1 starts at
(size % BLOCK_SIZE ?
drive_start+(size/BLOCK_SIZE) :
drive_start+(SIZE/BLOCK_SIZE)+1)
String encoding is possible, not a requirement...
Thunder
-- .-../../-./..-/-..- .-./..-/.-.././.../.-.-.-- 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/
This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:20 EST