首页  编辑  

分区表数据结构

Tags: /超级猛料/Format.格式,单位/File.文件格式/   Date Created:

struct fdisk_partition {

 unsigned char bootid;   /* bootable?  0=no, 128=yes  */

 unsigned char beghead;  /* beginning head number */

 unsigned char begsect;  /* beginning sector number */

 unsigned char begcyl;   /* 10 bit nmbr, with high 2 bits put in begsect */

 unsigned char systid;   /* Operating System type indicator code */

 unsigned char endhead;  /* ending head number */

 unsigned char endsect;  /* ending sector number */

 unsigned char endcyl;   /* also a 10 bit nmbr, with same high 2 bit trick

*/

 int relsect;            /* first sector relative to start of disk */

 int numsect;            /* number of sectors in partition */

};