This commit is contained in:
parent
5949600b48
commit
e994d4dda6
24
do-not-discard-bootcode-in-extended-partition.patch
Normal file
24
do-not-discard-bootcode-in-extended-partition.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Index: parted-1.8.8/libparted/labels/dos.c
|
||||
===================================================================
|
||||
--- parted-1.8.8.orig/libparted/labels/dos.c
|
||||
+++ parted-1.8.8/libparted/labels/dos.c
|
||||
@@ -1065,7 +1065,8 @@ write_ext_table (const PedDisk* disk,
|
||||
|
||||
lba_offset = ped_disk_extended_partition (disk)->geom.start;
|
||||
|
||||
- memset (&table, 0, sizeof (DosRawTable));
|
||||
+ ped_device_read (disk->dev, &table, sector, 1);
|
||||
+ memset (&(table.partitions), 0, 4 * sizeof(DosRawPartition));
|
||||
table.magic = PED_CPU_TO_LE16 (MSDOS_MAGIC);
|
||||
|
||||
if (!fill_raw_part (&table.partitions[0], logical, sector))
|
||||
@@ -1099,7 +1100,8 @@ write_empty_table (const PedDisk* disk,
|
||||
|
||||
PED_ASSERT (disk != NULL, return 0);
|
||||
|
||||
- memset (&table, 0, sizeof (DosRawTable));
|
||||
+ ped_device_read (disk->dev, &table, sector, 1);
|
||||
+ memset (&(table.partitions), 0, 4 * sizeof(DosRawPartition));
|
||||
table.magic = PED_CPU_TO_LE16 (MSDOS_MAGIC);
|
||||
|
||||
return ped_device_write (disk->dev, (void*) &table, sector, 1);
|
13
fix-error-informing-the-kernel.patch
Normal file
13
fix-error-informing-the-kernel.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: parted-1.8.8/libparted/arch/linux.c
|
||||
===================================================================
|
||||
--- parted-1.8.8.orig/libparted/arch/linux.c
|
||||
+++ parted-1.8.8/libparted/arch/linux.c
|
||||
@@ -2120,7 +2120,7 @@ _blkpg_add_partition (PedDisk* disk, Ped
|
||||
linux_part.start = part->geom.start * disk->dev->sector_size;
|
||||
/* see fs/partitions/msdos.c:msdos_partition(): "leave room for LILO" */
|
||||
if (part->type & PED_PARTITION_EXTENDED)
|
||||
- linux_part.length = part->geom.length == 1 ? 512 : 1024;
|
||||
+ linux_part.length = PED_SECTOR_SIZE_DEFAULT;
|
||||
else
|
||||
linux_part.length = part->geom.length * disk->dev->sector_size;
|
||||
linux_part.pno = part->num;
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 23 13:15:14 CET 2009 - puzel@suse.cz
|
||||
|
||||
- do-not-discard-bootcode-in-extended-partition.patch (bnc#467576)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 23 09:08:07 CET 2009 - puzel@suse.cz
|
||||
|
||||
- fix-error-informing-the-kernel.patch (bnc#449183)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 22 12:53:26 CET 2009 - puzel@suse.cz
|
||||
|
||||
|
10
parted.spec
10
parted.spec
@ -26,7 +26,7 @@ License: GPL v2 or later
|
||||
Group: System/Filesystems
|
||||
Summary: GNU partitioner
|
||||
Version: 1.8.8
|
||||
Release: 94
|
||||
Release: 98
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Patch: always-resize-part.dif
|
||||
Patch1: parted-type.patch
|
||||
@ -50,6 +50,8 @@ Patch58: fix-corrupted-gpt-crash.patch
|
||||
Patch59: fix-dvh-update.patch
|
||||
Patch60: fix-dasd-probe.patch
|
||||
Patch61: fix-multipath-part-name.patch
|
||||
Patch62: fix-error-informing-the-kernel.patch
|
||||
Patch63: do-not-discard-bootcode-in-extended-partition.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Url: http://www.gnu.org/software/parted/
|
||||
PreReq: %install_info_prereq
|
||||
@ -119,6 +121,8 @@ Authors:
|
||||
%patch59 -p1
|
||||
%patch60 -p1
|
||||
%patch61 -p1
|
||||
%patch62 -p1
|
||||
%patch63 -p1
|
||||
|
||||
%build
|
||||
AUTOPOINT=true autoreconf --force --install
|
||||
@ -163,6 +167,10 @@ rm -rf "$RPM_BUILD_ROOT"
|
||||
%{_libdir}/*.so
|
||||
|
||||
%changelog
|
||||
* Fri Jan 23 2009 puzel@suse.cz
|
||||
- do-not-discard-bootcode-in-extended-partition.patch (bnc#467576)
|
||||
* Fri Jan 23 2009 puzel@suse.cz
|
||||
- fix-error-informing-the-kernel.patch (bnc#449183)
|
||||
* Thu Jan 22 2009 puzel@suse.cz
|
||||
- fix-multipath-part-name.patch (bnc#447591)
|
||||
* Wed Jan 07 2009 olh@suse.de
|
||||
|
Loading…
x
Reference in New Issue
Block a user