SHA256
1
0
forked from pool/s390-tools
s390-tools/s390-tools-sles12-fdasd-skip-partition-check-and-BLKRRPART-ioctl.patch
Mark Post 0975e08340 Accepting request 531958 from home:markkp:branches:Base:System
- Modified mkdump perl script to work with the updated version
  of the IBM tools dasdview, zipl and zgetdump. (bsc#1020336).
- Upgraded to version 2.1.0 (Fate#323291).
  Changes from 2.0.0 to 2.1.0
  * Added the following tools:
    netboot: Scripts for building a PXE-style netboot image for KVM
    90-cpi.rules/cpictl: New udev rule to update CPI when KVM is used
  * Modified lsqeth/zdev to add VNIC Characteristics support
  Bug fixes
  * chzcrypt: Corrected handling of insufficient permissions
  * cpacfstats: Add size setting to perf event
  * fdasd: Skip partition check with the force option
  * ttyrun: Fix deprecated BindTo usage in ttyrun-getty@.service.in
  * lszcrypt: Fix core dump caused by stack overwrite
  * lszcrypt: Fix random domain printout when no config available
  * zdev: Fix segfault with unknown qeth attribute
  * zdev: Fix IPv6 NDP proxy description
  * zdev: Fix zdev dracut module temp file location
  * zkey: Correctly detect abbreviated commands
  * zkey: Validate XTS key: ignore domain and card
  * zkey: Use octal values instead of S_IRWX* constants
  * zkey: Properly set umask to prohibit permissions to group and others
  * zkey: Add -ldl to LDLIBS (not LDFLAGS)
  * znetconf: Re-add missing line in lsznet.raw
  * Fix several gcc 7 warnings
- Modified s390-tools-sles12-fdasd-skip-partition-check-and-BLKRRPART-ioctl.patch
  to apply cleanly to this version.
- Removed the following obsolete patches:
  * s390-tools-sles15-zgetdump-Fix-gcc-7-warning.patch
  * s390-tools-sles15-lscss-Get-rid-of-gcc-7-buffer-truncation-warnings.patch
  * s390-tools-sles15-Get-rid-of-gcc-7-fall-through-warnings.patch
  * s390-tools-sles15-lszcrypt-Fix-core-dump-caused-by-stack-overwrite.patch
  * s390-tools-sles15-dasdinfo-Fix-GCC-7-overflow-warning.patch
- Added the following patches (bsc#1056498)
  - s390-tools-sles15-zgetdump-Fix-gcc-7-warning.patch
  - s390-tools-sles15-lscss-Get-rid-of-gcc-7-buffer-truncation-warnings.patch
  - s390-tools-sles15-Get-rid-of-gcc-7-fall-through-warnings.patch
  - s390-tools-sles15-lszcrypt-Fix-core-dump-caused-by-stack-overwrite.patch
  - s390-tools-sles15-dasdinfo-Fix-GCC-7-overflow-warning.patch
- Upgraded to version 2.0.0 (Fate#323291).
  - Changes from 1.34.0 to 1.35.0
    - cpuplugd: Make default config file location more distribution agnostic
                Add systemd service unit to start/stop the cpuplug daemon
                Add force-reload action to init script for LSB-compliance
    - mon_statd: Add force-reload action to init script for LSB-compliance
    - chiucvallow: corrected verification return code
    - lczdev/chzdev: Add support for resolving iSCSI block devices
    Bug fixes
    - chzdev, lszdev: Fix incorrect zfcp module parameter name
    - chreipl: Fix chreipl node for virtio devices
    - libus2s: Fix busid parsing
    - zipl/boot: Fix failed start subchannel in FBA loader
  - Changes from 1.35.0 to 1.36.0
    - chzdev/lszdev: Add device resolution for vlan and bonding devices
    - dasdfmt: Add quick format support
    - lsdasd/fdasd/dasdfmt/zdsfs: Add query host access to volume support
    - zfcpdbf: Make timestamp the first field in record output
               Exclude Payload hex field from log message record output
               Add Area field to record output
               Add missing header fields to area record output
               Print the Record id field for Area area class records
               Mark oldest and newest trace area records
               Mark oldest and newest def_err pseudo area records
               Mark oldest and newest foreign area records
               Mark oldest and newest log message records
               Add a warning about low resolution timestamps
               Add Trace Area Statistics table to script output
               Add time zone command line option
               Add collection of domain xml files
    Bug fixes
    - zfcpdbf: Move and fix CPU id field output to print_header function
               Include microseconds in warning threshold calculation
               Fix parsing of precise syslog timestamps
               Fix labels for REC ERP action status and ERP step fields
  - Changes from 1.36.0 to 1.36.1
    - zfcpdbf: Support basic HBA record type without warning
               Restore tracing of handle for port and LUN with HBA records
               Print full payload for all SAN traces (req, resp, iels)
               Print payload length everywhere applicable
               Disambiguate printing of payload record content
    Bug fixes
    - fdasd: Prevent buffer overflow
    - znetconf: Fix detection of chpids as OSX instead of OSM
  - Changes from 1.36.1 to 1.37.0
     - Added dump2tar: sysfs collection helper for dbginfo.sh
     - qethconf: Remove check for OSN-device
     - znetconf: Remove OSN-support
     - lsdasd/tunedasd: Add channel path aware erp
     - zcrypt: Add multi domain support for zcrypt device driver
     - scm: Reimplement lsscm in C
     - chp: Reimplement chchp and lschp in C
     - dbginfo.sh: Make use of sysinfo collection helper
    Bug fixes
    - zfcpdbf: Only cap SAN short payload if pl_len exists
    - chzdev: Fix bug when configuring QETH devices
    - libu2s: Prevent buffer overflow
    - ziomon: No blktrace kill which can corrupt kernel blktrace state
  - Changes from 1.37.0 to 1.37.1
    - dbginfo.sh: Add Docker debug data
    Bug fixes
    - lsdasd: Replace continue with return
    - lscss: Allow to specify devices from subchannel set 3
    - mon_fsstatd: Only use physical filesystems
                   Fix double free in error path
    - mon_procd: Fix segmentation fault
  - Changes from 1.37.1 to 1.38.0
    - systemd: Add new units for cpi, dumpconf, mon_fsstatd, and mon_procd
    - fdasd: Add new command action 'l' to list known partition types
    - chmem: Try to online memory to zone movable
             Starting with kernel 4.13 (commit f1dd2cd1), the default zone for
             hotplug memory is changed from zone movable to zone normal. In order
             to preserve the previous default behaviour, chmem will now always try
             to set memory online to the zone movable, before trying to set it
             online to the default zone.
    - zfcpdbf: Print high part of "new" 64 bit SCSI LUN
               Print payload with full FCP_RSP IU in SCSI trace records
    - util_opt: Add command specific command line parsing
    - util_rec: Implement util_rec_iterate() function
    - util_rec: Record field values can be stored and processed in argz format
    Bug fixes
    - zipl/zgetdump: Add missing SCSI multipath dump information to man pages
    - lsqeth: Fix attributes name: ipa -> ipa_takeover and parp -> rxip
              Fix lsqeth output of ipa/vipa/rxip addresses of interfaces
    - zfcpdbf: Fix payload length for zfcp_dbf_hba_bit_err
    - chzdev: Add implicit qeth layer settings handling
    - qethqoat: Fix OSA 6S detection
  - Changes from 1.38.0 to 2.0.0 (also known as 1.39.0)
    - IBM changed the license to MIT.
    - Added zkey: Generate, re-encipher, and validate secure AES keys
    - cpumf: Add hardware counters for z13 and z13s
    - lscss: Reimplement lscss script in C
    - lsqeth: Reimplement lsqeth script in C
    Bug fixes
    - lscpumf: Fix Perl warnings
  - Removed the following obsolete patches:
    s390-tools-sles12sp2-chiucvallow-verify.patch
    s390-tools-sles12sp2-chreipl-virtio.patch
    s390-tools-sles12sp2-chzdev-disable-root-update.patch
    s390-tools-sles12sp2-lscss-allow-to-specify-devices-from-ssid-3.patch
    s390-tools-sles12sp2-zipl-fix-failed-start-subchannel.patch
    s390-tools-sles12sp3-chmem-try-to-online-zone-movable.patch
    s390-tools-sles12sp3-dasdfmt-01-Fix-behaviour-of-t-combined-with-y.patch
    s390-tools-sles12sp3-dasdfmt-02-Fix-trailing-whitespace.patch
    s390-tools-sles12sp3-dasdfmt-03-Apply-coding-convention.patch
    s390-tools-sles12sp3-dasdfmt-04-Use-enhanced-DASD-information.patch
    s390-tools-sles12sp3-dasdfmt-05-Refactor-do_format_dasd.patch
    s390-tools-sles12sp3-dasdfmt-06-Make-the-IOCTL-BLKSSZGET-reusable.patch
    s390-tools-sles12sp3-dasdfmt-07-Add-quick-format-support.patch
    s390-tools-sles12sp3-dasdfmt-08-Make-progress-output-reusable-and-add-ETR.patch
    s390-tools-sles12sp3-dasdfmt-09-Add-command-line-argument-check.patch
    s390-tools-sles12sp3-dasdfmt-10-Add-expand-format-mode.patch
    s390-tools-sles12sp3-dbginfo-01-libutil-Add-utility-functions.patch
    s390-tools-sles12sp3-dbginfo-02-dump2tar-Add-sysfs-collection-helper-for-dbginfo.sh-v2.patch
    s390-tools-sles12sp3-dbginfo-03-dbginfo.sh-Make-use-of-sysinfo-collection-helper.patch
    s390-tools-sles12sp3-dbginfo-Collect-docker-debug-data.patch
    s390-tools-sles12sp3-lsdasd-tunedasd-Add-channel-path-aware-erp.patch
    s390-tools-sles12sp3-mon_fsstatd-fix-double-free-in-error-path-and-skip-virtual-fs.patch
    s390-tools-sles12sp3-util_proc-fix-memory-allocation-error-messages.patch
    s390-tools-sles12sp3-ziomon-no-blktrace-kill-which-can-corrupt-kernel-blk.patch
- Added s390-tools-sles15-add--ldl-to-LDLIBS.patch to fix a problem with zkey/Makefile.

OBS-URL: https://build.opensuse.org/request/show/531958
OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=19
2017-10-05 22:49:30 +00:00

38 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 | 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
@@ -1247,9 +1247,12 @@
}
if (ioctl(fd, BLKRRPART, NULL) != 0) {
- close(fd);
- fdasd_error(anc, unable_to_ioctl, "Error while rereading "
- "partition table.\nPlease reboot!");
+ if (errno == EINVAL && !anc->force_virtual) {
+ close(fd);
+ fdasd_error(anc, unable_to_ioctl,
+ "Error while rereading "
+ "partition table.\nPlease reboot!");
+ }
}
close(fd);
}