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:
parent
d92fc9a8d4
commit
4422e9b7c7
@ -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-2.4.orig/libparted/arch/linux.c
|
||||||
+++ parted-1.9.0/libparted/arch/linux.c 2009-10-07 14:22:58.000000000 +0200
|
+++ parted-2.4/libparted/arch/linux.c
|
||||||
@@ -30,6 +30,7 @@
|
@@ -33,6 +33,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <syscall.h>
|
#include <syscall.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -10,7 +10,7 @@ Index: parted-1.9.0/libparted/arch/linux.c
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
@@ -2551,29 +2552,41 @@ err:
|
@@ -2770,29 +2771,39 @@ err:
|
||||||
static int
|
static int
|
||||||
_dm_reread_part_table (PedDisk* disk)
|
_dm_reread_part_table (PedDisk* disk)
|
||||||
{
|
{
|
||||||
@ -28,9 +28,8 @@ Index: parted-1.9.0/libparted/arch/linux.c
|
|||||||
+ FILE* f;
|
+ FILE* f;
|
||||||
|
|
||||||
sync();
|
sync();
|
||||||
if (!_dm_remove_parts(disk->dev))
|
- if (!_dm_remove_parts(disk->dev))
|
||||||
- rc = 0;
|
- rc = 0;
|
||||||
+ return 0;
|
|
||||||
|
|
||||||
- for (i = 1; i <= last; i++) {
|
- for (i = 1; i <= last; i++) {
|
||||||
- PedPartition* part;
|
- PedPartition* part;
|
||||||
|
@ -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
|
Mon Sep 5 12:08:48 UTC 2011 - puzel@suse.com
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user