File: part.h

package info (click to toggle)
palo 2.29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 524 kB
  • sloc: ansic: 6,381; asm: 218; makefile: 198; sh: 61
file content (27 lines) | stat: -rw-r--r-- 1,114 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __PART_H
#define __PART_H
/* stuff formerly from <linux/genhd.h> */
#define PALO_PARTITION                  0xf0
#define LINUX_EXT2_PARTITION            0x83
#define LINUX_SWAP_PARTITION            0x82
#define LINUX_RAID_PARTITION            0xfd    /* autodetect RAID partition */
#define DOS_EXTENDED_PARTITION 5
#define WIN98_EXTENDED_PARTITION 0x0f
#define LINUX_EXTENDED_PARTITION 0x85


struct partition {
        unsigned char boot_ind;         /* 0x80 - active */
        unsigned char head;             /* starting head */
        unsigned char sector;           /* starting sector */
        unsigned char cyl;              /* starting cylinder */
        unsigned char sys_ind;          /* What partition type */
        unsigned char end_head;         /* end head */
        unsigned char end_sector;       /* end sector */
        unsigned char end_cyl;          /* end cylinder */
        unsigned int start_sect;        /* starting sector counting from 0 */
        unsigned int nr_sects;          /* nr of sectors in partition */
} __attribute__((packed));

/******/
#endif /* __PART_H */