Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
s390-tools.17667
s390-tools-sles12-fdasd-skip-partition-check-an...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File s390-tools-sles12-fdasd-skip-partition-check-and-BLKRRPART-ioctl.patch of Package s390-tools.17667
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 @@ -1229,10 +1229,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, 1) != 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!"); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor