[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Remove DASD restriction on _disk_sync_part_table (#651478)
From: |
Brian C. Lane |
Subject: |
[PATCH] Remove DASD restriction on _disk_sync_part_table (#651478) |
Date: |
Fri, 19 Nov 2010 08:35:32 -0800 |
---
libparted/arch/linux.c | 23 ++---------------------
1 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 38f4e31..435cb46 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -2776,19 +2776,6 @@ _dm_reread_part_table (PedDisk* disk)
}
#endif
-static int
-_have_blkpg ()
-{
- static int have_blkpg = -1;
- int kver;
-
- if (have_blkpg != -1)
- return have_blkpg;
-
- kver = _get_linux_version();
- return have_blkpg = kver >= KERNEL_VERSION (2,4,0) ? 1 : 0;
-}
-
/* Return nonzero upon success, 0 if something fails. */
static int
linux_disk_commit (PedDisk* disk)
@@ -2807,14 +2794,8 @@ linux_disk_commit (PedDisk* disk)
* created. Therefore, if using DevFS, we must get the kernel
* to re-read and grok the partition table.
*/
- /* Work around kernel dasd problem so we really do BLKRRPART */
- int ok = 1;
- if (disk->dev->type != PED_DEVICE_DASD && _have_blkpg ()) {
- if (!_disk_sync_part_table (disk))
- ok = 0;
- }
-
- return ok;
+ if (!_disk_sync_part_table (disk))
+ return 0;
}
return 1;
--
1.7.3.2
- [PATCH] Remove DASD restriction on _disk_sync_part_table (#651478),
Brian C. Lane <=