prompts.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1991, 2001-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This file contains functions to prompt the user for various
* disk characteristics. By isolating these into functions,
* we can guarantee that prompts, defaults, etc are identical.
*/
#include "global.h"
#include "prompts.h"
#include "io.h"
#include "param.h"
#include "startup.h"
#ifdef sparc
#endif
/*
* Prompt for max number of LBA
*/
get_mlba()
{
}
/*
* Prompt for number of cylinders
*/
int
get_ncyl()
{
}
/*
* Prompt for number of alternate cylinders
*/
int
int n_cyls;
{
int deflt;
deflt = 2;
}
/*
* Prompt for number of physical cylinders
*/
int
int n_cyls;
int a_cyls;
{
int deflt;
}
/*
* Prompt for number of heads
*/
int
{
}
/*
* Prompt for number of physical heads
*/
int
int n_heads;
{
int deflt;
if (SCSI) {
return (deflt);
}
}
return (0);
}
/*
* Prompt for number of sectors per track
*/
int
{
}
/*
* Prompt for number of physical sectors per track
*/
int
{
int deflt;
if (SCSI) {
return (deflt);
}
}
return (0);
}
/*
* Prompt for bytes per track
*/
int
int n_sects;
{
int deflt;
if (SMD) {
}
return (0);
}
/*
* Prompt for rpm
*/
int
get_rpm()
{
int deflt;
}
/*
* Prompt for formatting time
*/
int
{
int deflt;
*options |= SUP_FMTTIME;
return (deflt);
}
return (0);
}
/*
* Prompt for cylinder skew
*/
int
{
int deflt;
*options |= SUP_CYLSKEW;
return (deflt);
}
return (0);
}
/*
* Prompt for track skew
*/
int
{
int deflt;
*options |= SUP_TRKSKEW;
return (deflt);
}
return (0);
}
/*
* Prompt for tracks per zone
*/
int
{
int deflt;
*options |= SUP_TRKS_ZONE;
return (deflt);
}
return (0);
}
/*
* Prompt for alternate tracks
*/
int
{
int deflt;
return (deflt);
}
return (0);
}
/*
* Prompt for alternate sectors
*/
int
{
int deflt;
return (deflt);
}
return (0);
}
/*
* Prompt for cache setting
*/
int
{
int deflt;
return (deflt);
}
return (0);
}
/*
* Prompt for prefetch threshold
*/
int
{
int deflt;
*options |= SUP_PREFETCH;
return (deflt);
}
return (0);
}
/*
* Prompt for minimum prefetch
*/
int
{
int deflt;
*options |= SUP_CACHE_MIN;
return (deflt);
}
return (0);
}
/*
* Prompt for maximum prefetch
*/
int
int min_prefetch;
{
int deflt;
*options |= SUP_CACHE_MAX;
return (deflt);
}
return (0);
}
/*
* Prompt for bytes per sector
*/
int
get_bps()
{
int deflt;
}
return (0);
}
/*
* Prompt for ascii label
*/
char *
{
"Enter disk type name (remember quotes)", ':',
}