diff options
Diffstat (limited to 'usr/src/cmd/format/prompts.c')
-rw-r--r-- | usr/src/cmd/format/prompts.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr/src/cmd/format/prompts.c b/usr/src/cmd/format/prompts.c index ce87f06349..e6ef368bbb 100644 --- a/usr/src/cmd/format/prompts.c +++ b/usr/src/cmd/format/prompts.c @@ -2,9 +2,8 @@ * 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. + * Common Development and Distribution License (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 * or http://www.opensolaris.org/os/licensing. @@ -20,12 +19,10 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 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, @@ -196,7 +193,7 @@ get_bpt(n_sects, options) *options |= SUP_BPT; ioparam.io_bounds.lower = 1; ioparam.io_bounds.upper = INFINITY; - deflt = n_sects * SECSIZE; + deflt = n_sects * cur_blksz; return (input(FIO_INT, "Enter number of bytes/track", ':', &ioparam, &deflt, DATA_INPUT)); } @@ -435,7 +432,7 @@ get_bps() ioparam.io_bounds.upper = MAX_BPS; deflt = AVG_BPS; return (input(FIO_INT, "Enter bytes per sector", - ':', &ioparam, &deflt, DATA_INPUT)); + ':', &ioparam, &deflt, DATA_INPUT)); } return (0); |