parted/parted-1.9.0-handle-dup-error.patch

25 lines
756 B
Diff
Raw Normal View History

2009-07-22 10:18:08 +00:00
From 41bbcb45aaa89294cda404c89526aa7e251e02ca Mon Sep 17 00:00:00 2001
From: Joel Granados Moreno <jgranado@redhat.com>
Date: Wed, 22 Jul 2009 12:08:34 +0200
Subject: [PATCH] Try to handle the duplicate error a little better.
---
libparted/disk.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libparted/disk.c b/libparted/disk.c
index 3656d22..8529e50 100644
--- a/libparted/disk.c
+++ b/libparted/disk.c
@@ -278,6 +278,7 @@ ped_disk_duplicate (const PedDisk* old_disk)
old_part = ped_disk_next_partition (old_disk, old_part)) {
if (ped_partition_is_active (old_part)) {
if (!_add_duplicate_part (new_disk, old_part))
+ _disk_pop_update_mode (new_disk);
goto error_destroy_new_disk;
}
}
--
1.6.0.6