lkml.org 
[lkml]   [2002]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] 2.5.28 and partitions
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/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.059 / U:1.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site