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

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