forked from pool/s390-tools
Marcus Meissner
9b729e2acc
New package per "Factory first" policy. Please list me as bug owner and maintainer, if possible. OBS-URL: https://build.opensuse.org/request/show/459343 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=1
43 lines
1.6 KiB
Diff
43 lines
1.6 KiB
Diff
Subject: [PATCH] [FEAT LS1501] dasdfmt: Add new formatting modes
|
|
From: Jan Höppner <hoeppner@linux.vnet.ibm.com>
|
|
|
|
Summary: dasdfmt: Add new formatting modes
|
|
Description: Introduce new formatting modes 'quick' and 'expand' to either
|
|
format an earlier formatted DASD that could potentially be
|
|
re-initialized very easily or format unformatted tracks at the
|
|
end of a device that was previously extended.
|
|
|
|
Also add the command line argument --check to provide a function
|
|
that checks a DASD volume for correct formatting.
|
|
Upstream-ID: 9e49066f5c779e6591b06d2276add744ea8ca4d0
|
|
Problem-ID: LS1501
|
|
|
|
Upstream-Description:
|
|
|
|
dasdfmt: Fix behaviour of -t combined with -y
|
|
|
|
When -t (testmode) is being combined with -y (noprompt), the
|
|
informations about what dasdfmt *would* do, is not being displayed.
|
|
|
|
Simply fix this by checking whether testmode is set.
|
|
|
|
Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com>
|
|
|
|
|
|
Signed-off-by: Jan Höppner <hoeppner@linux.vnet.ibm.com>
|
|
---
|
|
dasdfmt/dasdfmt.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/dasdfmt/dasdfmt.c
|
|
+++ b/dasdfmt/dasdfmt.c
|
|
@@ -894,7 +894,7 @@ static void do_format_dasd(dasdfmt_info_
|
|
vtoc_volume_label_set_label(vlabel, "LNX1");
|
|
}
|
|
|
|
- if ((info->verbosity > 0) || (!info->withoutprompt))
|
|
+ if ((info->verbosity > 0) || !info->withoutprompt || info->testmode)
|
|
dasdfmt_print_info(info, vlabel, cylinders, heads, p);
|
|
|
|
count = u2s_get_host_access_count(info->devname);
|