From 4422e9b7c7439f450166ce9b24ea890c0aea3556fad26ce8d9a88bd37ff9e166 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Wed, 7 Sep 2011 15:20:04 +0000 Subject: [PATCH] change do-not-create-dm-nodes.patch so that parted does not remove dm partition mappings and leaves the job up to kpartx -u called via udev (bnc#712177, bnc#679780) OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=49 --- do-not-create-dm-nodes.patch | 13 ++++++------- parted.changes | 8 ++++++++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/do-not-create-dm-nodes.patch b/do-not-create-dm-nodes.patch index 0093969..b270d0d 100644 --- a/do-not-create-dm-nodes.patch +++ b/do-not-create-dm-nodes.patch @@ -1,8 +1,8 @@ -Index: parted-1.9.0/libparted/arch/linux.c +Index: parted-2.4/libparted/arch/linux.c =================================================================== ---- parted-1.9.0.orig/libparted/arch/linux.c 2009-10-07 14:14:58.000000000 +0200 -+++ parted-1.9.0/libparted/arch/linux.c 2009-10-07 14:22:58.000000000 +0200 -@@ -30,6 +30,7 @@ +--- parted-2.4.orig/libparted/arch/linux.c ++++ parted-2.4/libparted/arch/linux.c +@@ -33,6 +33,7 @@ #include #include #include @@ -10,7 +10,7 @@ Index: parted-1.9.0/libparted/arch/linux.c #include #include #include -@@ -2551,29 +2552,41 @@ err: +@@ -2770,29 +2771,39 @@ err: static int _dm_reread_part_table (PedDisk* disk) { @@ -28,9 +28,8 @@ Index: parted-1.9.0/libparted/arch/linux.c + FILE* f; sync(); - if (!_dm_remove_parts(disk->dev)) +- if (!_dm_remove_parts(disk->dev)) - rc = 0; -+ return 0; - for (i = 1; i <= last; i++) { - PedPartition* part; diff --git a/parted.changes b/parted.changes index 35cdc11..b9a0e3f 100644 --- a/parted.changes +++ b/parted.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Sep 7 15:05:08 UTC 2011 - puzel@suse.com + +- change do-not-create-dm-nodes.patch so that parted does + not remove dm partition mappings and leaves the job up + to kpartx -u called via udev + (bnc#712177, bnc#679780) + ------------------------------------------------------------------- Mon Sep 5 12:08:48 UTC 2011 - puzel@suse.com