ALT Linux repositórios
Group :: Sistema/Configurações/Hadware
RPM: parted
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: parted-2.3-gpt-labels.patch
Download
Download
--- parted-2.3/libparted/labels/gpt.c.alt 2010-05-06 17:46:05.000000000 +0400
+++ parted-2.3/libparted/labels/gpt.c 2011-04-26 21:36:38.000000000 +0400
@@ -567,9 +567,8 @@ static void *
gpt_read_PE_array (PedDisk const *disk, GuidPartitionTableHeader_t const *gpt,
size_t *ptes_bytes)
{
- GPTDiskData *gpt_disk_data = disk->disk_specific;
uint32_t p_ent_size = PED_LE32_TO_CPU (gpt->SizeOfPartitionEntry);
- *ptes_bytes = p_ent_size * gpt_disk_data->entry_count;
+ *ptes_bytes = p_ent_size * PED_LE32_TO_CPU (gpt->NumberOfPartitionEntries);
size_t ptes_sectors = ped_div_round_up (*ptes_bytes,
disk->dev->sector_size);