forked from pool/s390-tools
Accepting request 875686 from home:markkp:branches:Base:System
- Updated detach_disks.sh to not use predictable temporary file names. (bsc#1182777) - Made for the following changes for bsc#1182816: * Updated s390-tools-sles15sp3-Format-devices-in-parallel.patch to change all instances of the progress bar from printing "#" to printing the process number of the DASD volume being formatted. * Updated s390-tools-sles15sp3-Implement-Y-yast_mode.patch to print out the numbder of cylinders in a device, as was done in the prior versions of this patch, but was missed when modifying it for SLES15 SP3. * Added s390-tools-sles15sp3-check-return-code-from-util_file_read_l.patch because otherwise a warning message from dasdfmt is being generated that could interfere with YaST properly processing the progress of the formatting process. OBS-URL: https://build.opensuse.org/request/show/875686 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=108
This commit is contained in:
parent
66c3c71c82
commit
a4a57474bc
@ -1,11 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
COOKIE=$(mcookie)
|
||||
DASDFILE=/tmp/dasd.list.${COOKIE}
|
||||
DETFILE=/tmp/detach.disks.${COOKIE}
|
||||
KEEPFILE=/tmp/keep.disks.${COOKIE}
|
||||
NICFILE=/tmp/nic.list.${COOKIE}
|
||||
FAILFILE=/tmp/error.${COOKIE}
|
||||
DASDFILE=/tmp/dasd.list.${mcookie}
|
||||
DETFILE=/tmp/detach.disks.${mcookie}
|
||||
KEEPFILE=/tmp/keep.disks.${mcookie}
|
||||
NICFILE=/tmp/nic.list.${mcookie}
|
||||
FAILFILE=/tmp/error.${mcookie}
|
||||
|
||||
function expand_RANGE(){
|
||||
local RANGE=${1}
|
||||
|
@ -101,6 +101,15 @@ index e7fc501..07c674b 100644
|
||||
for (i = barlength + 1; i <= 33; i++)
|
||||
printf("-");
|
||||
printf("|%3d%%", p_new);
|
||||
@@ -311,7 +318,7 @@
|
||||
}
|
||||
|
||||
if (g.print_hashmarks && (cyl / g.hashstep - hashcount) != 0) {
|
||||
- printf("#");
|
||||
+ printf("%d|", g.procnum);
|
||||
fflush(stdout);
|
||||
hashcount++;
|
||||
}
|
||||
@@ -1560,7 +1568,11 @@
|
||||
char *reqsize_param_str = NULL;
|
||||
char *hashstep_str = NULL;
|
||||
|
@ -104,6 +104,15 @@ index 6dd28fa..5b6023a 100644
|
||||
printf("ok\n");
|
||||
}
|
||||
}
|
||||
@@ -1548,6 +1556,8 @@
|
||||
error("%s", str);
|
||||
|
||||
set_geo(&cylinders, &heads);
|
||||
+ if (g.yast_mode)
|
||||
+ printf("%d\n", cylinders);
|
||||
set_label(&vlabel, &format_params, cylinders);
|
||||
|
||||
if (g.check)
|
||||
@@ -1693,6 +1701,10 @@ int main(int argc, char *argv[])
|
||||
case OPT_NODISCARD:
|
||||
g.no_discard = 1;
|
||||
|
@ -0,0 +1,12 @@
|
||||
--- a/libdasd/dasd_sys.c 2020-10-28 10:31:59.000000000 -0400
|
||||
+++ b/libdasd/dasd_sys.c 2021-02-27 17:41:04.937023501 -0500
|
||||
@@ -218,7 +218,8 @@
|
||||
return 0;
|
||||
|
||||
path = util_path_sysfs("bus/ccw/devices/%s/host_access_count", busid);
|
||||
- util_file_read_l(&value, 10, path);
|
||||
+ if (util_file_read_l(&value, 10, path) == -1)
|
||||
+ value=0;
|
||||
free(path);
|
||||
|
||||
return value;
|
@ -1,3 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 27 23:07:46 UTC 2021 - Mark Post <mpost@suse.com>
|
||||
|
||||
- Updated detach_disks.sh to not use predictable temporary file
|
||||
names. (bsc#1182777)
|
||||
- Made for the following changes for bsc#1182816:
|
||||
* Updated s390-tools-sles15sp3-Format-devices-in-parallel.patch to
|
||||
change all instances of the progress bar from printing "#" to
|
||||
printing the process number of the DASD volume being formatted.
|
||||
* Updated s390-tools-sles15sp3-Implement-Y-yast_mode.patch to print
|
||||
out the numbder of cylinders in a device, as was done in the
|
||||
prior versions of this patch, but was missed when modifying it
|
||||
for SLES15 SP3.
|
||||
* Added s390-tools-sles15sp3-check-return-code-from-util_file_read_l.patch
|
||||
because otherwise a warning message from dasdfmt is being generated
|
||||
that could interfere with YaST properly processing the progress
|
||||
of the formatting process.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 17 20:47:26 UTC 2021 - Mark Post <mpost@suse.com>
|
||||
|
||||
|
@ -112,6 +112,7 @@ Patch908: s390-tools-sles15sp3-dasdfmt-retry-BIODASDINFO-if-device-is-busy
|
||||
Patch909: 59-dasd.rules-wait_for.patch
|
||||
Patch910: s390-tools-sles12-fdasd-skip-partition-check-and-BLKRRPART-ioctl.patch
|
||||
Patch911: s390-tools-sles15sp1-11-zdev-Do-not-call-zipl-on-initrd-update.patch
|
||||
Patch912: s390-tools-sles15sp3-check-return-code-from-util_file_read_l.patch
|
||||
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: dracut
|
||||
@ -231,7 +232,7 @@ export OPT_FLAGS="%{optflags}"
|
||||
export KERNELIMAGE_MAKEFLAGS="%%{?_smp_mflags}"
|
||||
make %{?_smp_mflags} \
|
||||
ZFCPDUMP_DIR=%{_prefix}/lib/s390-tools/zfcpdump \
|
||||
DISTRELEASE=%{release}
|
||||
DISTRELEASE=%{release} V=1
|
||||
gcc -static -o read_values ${OPT_FLAGS} %{SOURCE86} -lqc
|
||||
|
||||
%install
|
||||
|
Loading…
Reference in New Issue
Block a user