f1cde68d53
- Updated to version 2.25.0 (jsc#PED-627) * __v2.25.0 (2022-12-12)__ For Linux kernel version: 6.1 Changes of existing tools: - ap_tools: Use new mdevctl installation location - lsdasd/tunedasd/zdev: Add support to handle copy pair relations presented by the DASD driver - zdev: Add --shell command line switch to generate output suitable for shell environments - zipl: Add List-Directed IPL from ECKD DASD to support secure boot Bug Fixes: - ipl_tools: Fix chreipl node for NVMes with CONFIG_NVME_MULTIPATH - libdasd: Fix bug that prevented positive ioctl return codes - Updated s390-tools-sles15sp5-fix-chown-commands-syntax.patch to fit the current version - Removed obsolete Patch002, and Patch003 # Patch002: s390-tools-sles15sp5-util_lockfile-fix-includes.patch # Patch003: s390-tools-sles15sp5-ap_tools-ap-check-use-new-mdevctl-install-location.patch OBS-URL: https://build.opensuse.org/request/show/1042407 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=141
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From d0c2ffc90b9ee0e7b741d1c4b644cdf79f1d922b Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Wed, 20 May 2015 11:57:11 +0200
|
|
Subject: [PATCH] fdasd: skip partition check and BLKRRPART ioctl for emulated
|
|
devices
|
|
|
|
If 'fdasd -f' is called we cannot rely on the partition detection
|
|
via a simple check of the minor number, so the check should be
|
|
suppressed.
|
|
Similarly, not every emulated device supports the BLKRRPART ioctl,
|
|
so we should be suppressing the error message for these devices, too.
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
---
|
|
fdasd/fdasd.c | 13 ++++++++-----
|
|
1 file changed, 8 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/fdasd/fdasd.c b/fdasd/fdasd.c
|
|
index 4503d3e..f04dc3d 100644
|
|
--- a/fdasd/fdasd.c
|
|
+++ b/fdasd/fdasd.c
|
|
@@ -1231,10 +1231,12 @@
|
|
*/
|
|
static void fdasd_reread_partition_table(fdasd_anchor_t *anc)
|
|
{
|
|
+ int rc = 0 ;
|
|
if (!anc->silent)
|
|
printf("rereading partition table...\n");
|
|
|
|
- if (dasd_reread_partition_table(options.device, 5) != 0) {
|
|
+ rc = dasd_reread_partition_table(options.device, 1);
|
|
+ if (rc == EINVAL && !anc->force_virtual) {
|
|
fdasd_error(anc, unable_to_ioctl, "Error while rereading "
|
|
"partition table.\nPlease reboot!");
|
|
}
|