forked from pool/s390-tools
( jsc#IBM-1447, jsc#IBM-1062 ) * s390-tools-General-update-01.patch * s390-tools-General-update-02.patch * s390-tools-General-update-03.patch * s390-tools-General-update-04.patch * s390-tools-General-update-05.patch * s390-tools-General-update-06.patch * s390-tools-General-update-07.patch * s390-tools-General-update-08.patch * s390-tools-General-update-09.patch * s390-tools-General-update-10.patch * s390-tools-General-update-11.patch * s390-tools-General-update-12.patch * s390-tools-Additional-update-01.patch * s390-tools-Additional-update-02.patch ( jsc#IBM-1570, jsc#IBM-1571 ) * s390-tools-Support-unencrypted-SE-images-01.patch ( jsc#IBM-1572, jsc#IBM-1573 ) * s390-tools-pvimg-info-command-01.patch * s390-tools-pvimg-info-command-02.patch * s390-tools-pvimg-info-command-03.patch * s390-tools-pvimg-info-command-04.patch ( jsc#IBM-1576, jsc#IBM-1577 ) * s390-tools-pvimg-additional-01.patch - Renamed patches from - to * s390-tools-01-opticsmon-Fix-runaway-loop-in-on_link_change.patch to s390-tools-Additional-update-01.patch * s390-tools-02-libzpci-opticsmon-Refactor-on_link_change-using-new.patch to s390-tools-Additional-update-02.patch * s390-tools-03-rust-pvimg-Add-enable-disable-image-encryption-flags-to-pvimg-create.patch to s390-tools-Support-unencrypted-SE-images-01.patch - Revendored vendor.tar.gz OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=243
34 lines
1.1 KiB
Diff
34 lines
1.1 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 | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
--- 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!");
|
|
}
|