disk: dos: add code for creating MBR partition layout
Add a code for creating and writing MBR partition layout. The code generates similar layout of EBRs (Exteneded Block Records) and logical volumes as Linux's fdisk utility. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
This commit is contained in:
committed by
Tom Rini
parent
cb571f91c6
commit
20bd5ac6e4
@@ -19,6 +19,8 @@
|
||||
#define DOS_PART_TYPE_EXTENDED_LBA 0x0F
|
||||
#define DOS_PART_TYPE_EXTENDED_LINUX 0x85
|
||||
|
||||
#define DOS_PART_DEFAULT_GAP 2048
|
||||
|
||||
typedef struct dos_partition {
|
||||
unsigned char boot_ind; /* 0x80 - active */
|
||||
unsigned char head; /* starting head */
|
||||
|
||||
Reference in New Issue
Block a user