Accepting request 142285 from Base:System
- add fix-error-informing-the-kernel.patch: Informing the kernel about partition changes still fails if first logical partition starts right after the extended partition. Fix it. OBS-URL: https://build.opensuse.org/request/show/142285 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/parted?expand=0&rev=82
This commit is contained in:
commit
f4fc71f60b
17
fix-error-informing-the-kernel.patch
Normal file
17
fix-error-informing-the-kernel.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
libparted/arch/linux.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
Index: parted-2.4/libparted/arch/linux.c
|
||||||
|
===================================================================
|
||||||
|
--- parted-2.4.orig/libparted/arch/linux.c
|
||||||
|
+++ parted-2.4/libparted/arch/linux.c
|
||||||
|
@@ -2376,7 +2376,7 @@ _blkpg_add_partition (PedDisk* disk, con
|
||||||
|
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,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 21 10:32:05 UTC 2012 - puzel@suse.com
|
||||||
|
|
||||||
|
- add fix-error-informing-the-kernel.patch:
|
||||||
|
Informing the kernel about partition changes still fails if first
|
||||||
|
logical partition starts right after the extended partition. Fix
|
||||||
|
it.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 27 13:40:56 UTC 2012 - puzel@suse.com
|
Thu Sep 27 13:40:56 UTC 2012 - puzel@suse.com
|
||||||
|
|
||||||
|
@ -47,6 +47,7 @@ Patch18: parted-fix-cciss-partition-naming.patch
|
|||||||
Patch19: dummy-bootcode-only-for-x86.patch
|
Patch19: dummy-bootcode-only-for-x86.patch
|
||||||
Patch20: parted-stdio.h.patch
|
Patch20: parted-stdio.h.patch
|
||||||
Patch21: parted-workaround-windows7-gpt-implementation.patch
|
Patch21: parted-workaround-windows7-gpt-implementation.patch
|
||||||
|
Patch22: fix-error-informing-the-kernel.patch
|
||||||
Requires: /sbin/udevadm
|
Requires: /sbin/udevadm
|
||||||
BuildRequires: check-devel
|
BuildRequires: check-devel
|
||||||
BuildRequires: device-mapper-devel >= 1.02.33
|
BuildRequires: device-mapper-devel >= 1.02.33
|
||||||
@ -116,6 +117,7 @@ to develop applications that require these.
|
|||||||
%patch19 -p1
|
%patch19 -p1
|
||||||
%patch20 -p1
|
%patch20 -p1
|
||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
|
%patch22 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} `ncursesw6-config --cflags`"
|
export CFLAGS="%{optflags} `ncursesw6-config --cflags`"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user