]>
git.ipfire.org Git - thirdparty/mdadm.git/blob - part.h
2 * mdadm - manage Linux "md" devices aka RAID arrays.
4 * Copyright (C) 2010 Neil Brown <neilb@suse.de>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 * Email: <neil@brown.name>
26 /* Structure definitions ext for MBR and GPT partition tables
30 #define MBR_SIGNATURE_MAGIC __cpu_to_le16(0xAA55)
31 #define MBR_PARTITIONS 4
33 struct MBR_part_record
{
48 struct MBR_part_record parts
[MBR_PARTITIONS
];
50 } __attribute__((packed
));
54 #define GPT_SIGNATURE_MAGIC __cpu_to_le64(0x5452415020494645ULL)
55 #define MBR_GPT_PARTITION_TYPE 0xEE
57 struct GPT_part_entry
{
58 unsigned char type_guid
[16];
59 unsigned char partition_guid
[16];
62 unsigned char attr_bits
[8];
63 unsigned char name
[72];
64 } __attribute__((packed
));
82 } __attribute__((packed
));