sizespec:
Implement scaling letter 's' to mean 'sectors' (of 512 bytes).
This commit is contained in:
parent
9f8115fd0c
commit
a894c77db1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46260
@ -33,7 +33,7 @@
|
||||
* otherwise) arising in any way out of the use of this software, even if
|
||||
* advised of the possibility of such damage.
|
||||
*
|
||||
* $Id: vinumutil.c,v 1.10 1999/01/02 00:39:04 grog Exp grog $
|
||||
* $Id: vinumutil.c,v 1.11 1999/03/19 06:50:44 grog Exp grog $
|
||||
*/
|
||||
|
||||
/* This file contains utility routines used both in kernel and user context */
|
||||
@ -200,6 +200,8 @@ sizespec(char *spec)
|
||||
|
||||
case 'B':
|
||||
case 'b':
|
||||
case 'S':
|
||||
case 's':
|
||||
return size * sign * 512;
|
||||
|
||||
case 'K':
|
||||
|
Loading…
Reference in New Issue
Block a user