Blame SOURCES/0028-libparted-reread-part-table-with-0-partitions-113846.patch

fc4a62
From 22f857bb8f57438ec6f34876e1933df01b448044 Mon Sep 17 00:00:00 2001
fc4a62
From: Fedora Ninjas <parted-owner@fedoraproject.org>
fc4a62
Date: Wed, 24 Sep 2014 15:59:47 -0700
fc4a62
Subject: [PATCH] libparted: reread part table with 0 partitions (#1138465)
fc4a62
fc4a62
After removing the last partition it still needs to be able to rescan
fc4a62
the partition table, otherwise device-mapper (and in this case mpath) is
fc4a62
never told that the last partition was removed.
fc4a62
fc4a62
Resolves: rhbz#1138465
fc4a62
---
fc4a62
 libparted/arch/linux.c | 3 ---
fc4a62
 1 file changed, 3 deletions(-)
fc4a62
fc4a62
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
fc4a62
index 4af0d5c..4daa881 100644
fc4a62
--- a/libparted/arch/linux.c
fc4a62
+++ b/libparted/arch/linux.c
fc4a62
@@ -2878,9 +2878,6 @@ static int
fc4a62
 _dm_reread_part_table (PedDisk* disk)
fc4a62
 {
fc4a62
         int largest_partnum = ped_disk_get_last_partition_num (disk);
fc4a62
-        if (largest_partnum <= 0)
fc4a62
-          return 1;
fc4a62
-
fc4a62
         int     rc = 1;
fc4a62
         int     i;
fc4a62
 
fc4a62
-- 
fc4a62
1.9.3
fc4a62