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

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