forked from pool/s390-tools
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
63 lines
1.8 KiB
Diff
63 lines
1.8 KiB
Diff
From 8f05578d90df49dce6e13ee850fdc8bab84916ba Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Fri, 6 Oct 2017 12:23:32 +0200
|
|
Subject: [PATCH] dasdfmt: Implement '-f' for backwards compability
|
|
|
|
YaST is calling dasdfmt with '-f device', which used to be the old
|
|
calling convention. So to not keel over when used with an older
|
|
version of YaST we should accept this option, too.
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.com>
|
|
---
|
|
dasdfmt/dasdfmt.8 | 5 ++++-
|
|
dasdfmt/dasdfmt.c | 10 ++++++++++
|
|
2 files changed, 14 insertions(+), 1 deletion(-)
|
|
|
|
--- a/dasdfmt/dasdfmt.8
|
|
+++ b/dasdfmt/dasdfmt.8
|
|
@@ -11,7 +11,7 @@
|
|
.br
|
|
[\-r \fIcylinder\fR] [\-b \fIblksize\fR] [\-l \fIvolser\fR] [\-d \fIlayout\fR]
|
|
.br
|
|
- [\-L] [\-V] [\-F] [\-k] [\-C] [\-M \fImode\fR] \fIdevice\fR [\fIdevice\fR]
|
|
+ [\-L] [\-V] [\-F] [\-k] [\-C] [\-M \fImode\fR] [-f \fIdevice\fR] [\fIdevice\fR]
|
|
|
|
.SH DESCRIPTION
|
|
\fBdasdfmt\fR formats one or several DASD (ECKD) disk drive(s) to prepare them
|
|
@@ -39,6 +39,9 @@
|
|
.TP
|
|
\fB\-v\fR
|
|
Increases verbosity.
|
|
+.TP
|
|
+\fB-f\fR \fIdevice\fR or \fB--device\fR=\fIdevice\fR
|
|
+Specify device to format. For backwards compability only.
|
|
|
|
.TP
|
|
\fB\-y\fR
|
|
--- a/dasdfmt/dasdfmt.c
|
|
+++ b/dasdfmt/dasdfmt.c
|
|
@@ -113,6 +113,10 @@
|
|
.desc = "Format devices in parallel",
|
|
.flags = UTIL_OPT_FLAG_NOLONG,
|
|
},
|
|
+ {
|
|
+ .option = { "device", required_argument, NULL, 'f' },
|
|
+ .desc = "Specify device to format",
|
|
+ },
|
|
UTIL_OPT_SECTION("FORMAT OPTIONS"),
|
|
{
|
|
.option = { "blocksize", required_argument, NULL, 'b' },
|
|
@@ -1649,6 +1653,12 @@
|
|
}
|
|
g.layout_specified = 1;
|
|
break;
|
|
+ case 'f':
|
|
+ get_device_name(optind-1, argc, argv);
|
|
+ strncpy(g.dev_path_array[numdev], g.dev_path, strlen(g.dev_path));
|
|
+ strncpy(g.dev_node_array[numdev], g.dev_node, strlen(g.dev_node));
|
|
+ numdev++;
|
|
+ break;
|
|
case 'y':
|
|
g.withoutprompt = 1;
|
|
break;
|