Anton Zinoviev wrote: > On 19.III.2004 at 13:35 Thiemo Seufer wrote: > > > What will be the ordering if #13 is physicaly before #12 in the disk? > > > > It's impossible for dvh, the numbers are just an index of an fixed > > sized field there. > > I can not use fdisk on i386 in order to create dvh partition table in > a file (hmm, I have to try with a loopback device). But at least with > parted it seams possible to create partition table where #13 is before > #12. > > What happens if you create some partition at the end of the disk, and > afterwards another with bigger number at the beginning of the disk?
I'm not sure if we talk about the same things here. Dvh has 16 partition slots, numbered from #1 to #16. Every of those can point to any contiguous area of the (linear) disk space, and they can even overlap, altough this makes only sense in some cases (#11 is conventionally PTYPE_VOLUME, which spans the whole volume, so it overlaps with all other partitions). The dvh partition entry is simply: struct partition_table { int32_t pt_nblks; int32_t pt_firstlbn; int32_t pt_type; }; The whole dvh contains an array of them: #define NPARTAB 16 struct volume_header { /* ... */ struct partition_table vh_pt[NPARTAB]; /* ... */ }; Thiemo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]