Subject: [PATCH] [FEAT LS1501] dasdfmt: Add new formatting modes From: Jan Höppner 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 Signed-off-by: Jan Höppner --- 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);