Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
s390-tools.19914
s390-tools-sles15sp2-dasdfmt-Remove-function-da...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File s390-tools-sles15sp2-dasdfmt-Remove-function-dasdfmt_format.patch of Package s390-tools.19914
From 65e18bff675b48ea200e1ed5bcb7cbb9e6575b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= <hoeppner@linux.ibm.com> Date: Wed, 21 Oct 2020 13:01:36 +0200 Subject: [PATCH] dasdfmt: Remove function dasdfmt_format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dasdfmt_format() does nothing but calling process_tracks() with the same parameters. Get rid of it, call process_tracks() directly, and avoid confusion. Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com> --- dasdfmt/dasdfmt.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/dasdfmt/dasdfmt.c b/dasdfmt/dasdfmt.c index c78080c..2040a62 100644 --- a/dasdfmt/dasdfmt.c +++ b/dasdfmt/dasdfmt.c @@ -1236,15 +1236,6 @@ static void dasdfmt_find_start(dasdfmt_info_t *info, unsigned int cylinders, format_params->start_unit = first; } -/* - * formats the disk cylinderwise - */ -static void dasdfmt_format(dasdfmt_info_t *info, unsigned int cylinders, - unsigned int heads, format_data_t *format_params) -{ - process_tracks(info, cylinders, heads, format_params); -} - static void dasdfmt_release_space(dasdfmt_info_t *info) { format_data_t r = { @@ -1299,7 +1290,7 @@ static void dasdfmt_prepare_and_format(dasdfmt_info_t *info, /* except track 0 from standard formatting procss */ p->start_unit = 1; - dasdfmt_format(info, cylinders, heads, p); + process_tracks(info, cylinders, heads, p); if (info->verbosity > 0) printf("formatting tracks complete...\n"); @@ -1336,7 +1327,7 @@ static void dasdfmt_expand_format(dasdfmt_info_t *info, unsigned int cylinders, disk_disable(dev_filename); - dasdfmt_format(info, cylinders, heads, p); + process_tracks(info, cylinders, heads, p); if (info->verbosity > 0) printf("Formatting tracks complete...\n"); -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor