Hello community,

here is the log from the commit of package parted for openSUSE:Factory
checked in at Wed Aug 17 09:52:38 CEST 2011.



--------
--- parted/parted.changes       2011-07-31 03:51:53.000000000 +0200
+++ /mounts/work_src_done/STABLE/parted/parted.changes  2011-08-16 
11:12:59.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Aug 16 09:07:50 UTC 2011 - [email protected]
+
+- update parted-gpt-mbr-sync.patch so that it no longer
+  creates synced partitions one sector shorter (bnc#700465)
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ parted.spec ++++++
--- /var/tmp/diff_new_pack.wfmHXG/_old  2011-08-17 09:44:51.000000000 +0200
+++ /var/tmp/diff_new_pack.wfmHXG/_new  2011-08-17 09:44:51.000000000 +0200
@@ -19,7 +19,7 @@
 
 Name:           parted
 Version:        2.4
-Release:        7
+Release:        9
 License:        GPLv3+
 Summary:        GNU partitioner
 Url:            http://www.gnu.org/software/parted/

++++++ parted-gpt-mbr-sync.patch ++++++
--- /var/tmp/diff_new_pack.wfmHXG/_old  2011-08-17 09:44:52.000000000 +0200
+++ /var/tmp/diff_new_pack.wfmHXG/_new  2011-08-17 09:44:52.000000000 +0200
@@ -4,9 +4,9 @@
 
 Index: libparted/labels/gpt.c
 ===================================================================
---- libparted/labels/gpt.c.orig        2010-05-06 15:46:05.000000000 +0200
-+++ libparted/labels/gpt.c     2010-07-08 13:29:33.000000000 +0200
-@@ -50,6 +50,11 @@
+--- libparted/labels/gpt.c.orig
++++ libparted/labels/gpt.c
+@@ -51,6 +51,11 @@
  #  define _(String) (String)
  #endif /* ENABLE_NLS */
  
@@ -18,7 +18,7 @@
  #define EFI_PMBR_OSTYPE_EFI 0xEE
  #define MSDOS_MBR_SIGNATURE 0xaa55
  
-@@ -1056,11 +1061,60 @@ error:
+@@ -1072,11 +1077,60 @@ error:
    return 0;
  }
  
@@ -80,7 +80,7 @@
    /* The UEFI spec is not clear about what to do with the following
       elements of the Protective MBR (pmbr): BootCode (0-440B),
       UniqueMBRSignature (440B-444B) and Unknown (444B-446B).
-@@ -1070,10 +1124,13 @@ _write_pmbr (PedDevice *dev)
+@@ -1086,10 +1140,13 @@ _write_pmbr (PedDevice *dev)
      return 0;
    LegacyMBR_t *pmbr = s0;
  
@@ -94,7 +94,7 @@
    pmbr->PartitionRecord[0].OSType = EFI_PMBR_OSTYPE_EFI;
    pmbr->PartitionRecord[0].StartSector = 1;
    pmbr->PartitionRecord[0].EndHead = 0xFE;
-@@ -1084,6 +1141,54 @@ _write_pmbr (PedDevice *dev)
+@@ -1100,6 +1157,53 @@ _write_pmbr (PedDevice *dev)
      pmbr->PartitionRecord[0].SizeInLBA = PED_CPU_TO_LE32 (0xFFFFFFFF);
    else
      pmbr->PartitionRecord[0].SizeInLBA = PED_CPU_TO_LE32 (dev->length - 1UL);
@@ -133,7 +133,6 @@
 +          continue;
 +      }
 +      pmbr->PartitionRecord[i].OSType      = _part_to_ostype(part);
-+      pmbr->PartitionRecord[i].StartSector = 1;
 +      pmbr->PartitionRecord[i].StartHead     = 0xFE;
 +      pmbr->PartitionRecord[i].StartSector   = 0xFF;
 +      pmbr->PartitionRecord[i].StartTrack    = 0xFF;
@@ -143,13 +142,13 @@
 +      pmbr->PartitionRecord[i].StartingLBA = _part_32bitmax(part->geom.start);
 +      if(((GPTPartitionData*)part->disk_specific)->boot)
 +          pmbr->PartitionRecord[i].BootIndicator = 0x80;
-+      pmbr->PartitionRecord[i].SizeInLBA = _part_32bitmax(part->geom.end - 
part->geom.start);
++      pmbr->PartitionRecord[i].SizeInLBA = _part_32bitmax(part->geom.end - 
part->geom.start + 1);
 +  }
 +#endif
  
    int write_ok = ped_device_write (dev, pmbr, GPT_PMBR_LBA,
                                     GPT_PMBR_SECTORS);
-@@ -1198,7 +1303,7 @@ gpt_write (const PedDisk *disk)
+@@ -1216,7 +1320,7 @@ gpt_write (const PedDisk *disk)
    ptes_crc = efi_crc32 (ptes, ptes_size);
  
    /* Write protective MBR */


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to