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
This commit is contained in:
Petr Uzel 2011-09-07 15:20:04 +00:00 committed by Git OBS Bridge
parent d92fc9a8d4
commit 4422e9b7c7
2 changed files with 14 additions and 7 deletions

View File

@ -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 <stdio.h>
#include <syscall.h>
#include <unistd.h>
@ -10,7 +10,7 @@ Index: parted-1.9.0/libparted/arch/linux.c
#include <stdbool.h>
#include <dirent.h>
#include <sys/ioctl.h>
@@ -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;

View File

@ -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