diff options
author | james <james> | 2013-09-14 08:54:25 +0000 |
---|---|---|
committer | james <james> | 2013-09-14 08:54:25 +0000 |
commit | 2cbdb2327c7575282d83e7331eb8e957e72ce394 (patch) | |
tree | eaa17f2b6dca53e016ac1cd2cbc253c7ed5a7c4e /src/sync.c | |
parent | bf9e9370c3e6990c0cacb5b283b494f1fe5dc5f2 (diff) | |
download | gpt-2cbdb2327c7575282d83e7331eb8e957e72ce394.tar.gz gpt-2cbdb2327c7575282d83e7331eb8e957e72ce394.tar.bz2 gpt-2cbdb2327c7575282d83e7331eb8e957e72ce394.zip |
add lvm, raid, new ext3 to sync
Diffstat (limited to 'src/sync.c')
-rw-r--r-- | src/sync.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1,6 +1,9 @@ #include "project.h" + + + void sync_tables (DISK * d) { @@ -12,6 +15,9 @@ sync_tables (DISK * d) GUID guid_swap = GUID_TYPE_LINUX_SWAP; GUID guid_hfs = GUID_TYPE_APPLE_HFS; GUID guid_efi = GUID_TYPE_SYSTEM; + GUID guid_new_ext3= GUID_TYPE_NEW_LINUX_EXT3; + GUID guid_raid = GUID_TYPE_LINUX_RAID; + GUID guid_lvm = GUID_TYPE_LINUX_LVM; int mbr_entry = 0; int seen_linux = 0; @@ -35,6 +41,18 @@ sync_tables (DISK * d) { type = MBR_PARTITION_TYPE_EFI; } + else if (!guid_cmp (&e.type, &guid_ext3) || !guid_cmp (&e.type, &guid_new_ext3)) + { + type = MBR_PARTITION_TYPE_LINUX; + } + else if (!guid_cmp (&e.type, &guid_raid)) + { + type = MBR_PARTITION_TYPE_RAID; + } + else if (!guid_cmp (&e.type, &guid_lvm)) + { + type = MBR_PARTITION_TYPE_LVM; + } else if (!guid_cmp (&e.type, &guid_ext3)) { type = MBR_PARTITION_TYPE_LINUX; |