37e471ec3d
* s390-tools: Define Rust MSRV as 1.75.0 * Add new tools / libraries: - cpacfinfo: Tool to provide CPACF information - opticsmon: Tools to monitor optical modules for directly attached PCI based NICs - pvimg: Rust rewrite of genprotimg * Changes of existing tools: - chpstat: Add data bandwidth utilization column - chpstat: Add support for full CMCB - chpstat: Add support for new CMG types - dbginfo.sh: add overview commands and crypto update - hyptop: Support for structured output (json, json-seq, csv) - lszfcp: Add missing fallback marker for non-good fc_host port_state - lszfcp: Improve speed with many SCSI devices - pvattest: Add attestation policy check command - zipl: Add support of partitions of mirror md-devices * Bug Fixes: - lszcrypt: Fix wrong state showing up for removed AP queue within SE guest - lszfcp: Show device names line for zfcp_units without SCSI device - Revendored vendor.tar.gz OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=232
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!");
|
|
}
|