diff options
author | grog <grog@FreeBSD.org> | 1999-05-02 07:49:13 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-05-02 07:49:13 +0000 |
commit | a2704f47c7801ed2ac34fdf97c4a28434c55f63e (patch) | |
tree | 54a42e76af5165c8cdcf32c55f0505c1fa2f41e4 /sys/dev/vinum/vinumutil.c | |
parent | 6c7b9a1b0873d03f078da3e9889a8034b96a88ad (diff) | |
download | FreeBSD-src-a2704f47c7801ed2ac34fdf97c4a28434c55f63e.zip FreeBSD-src-a2704f47c7801ed2ac34fdf97c4a28434c55f63e.tar.gz |
sizespec:
Implement scaling letter 's' to mean 'sectors' (of 512 bytes).
Diffstat (limited to 'sys/dev/vinum/vinumutil.c')
-rw-r--r-- | sys/dev/vinum/vinumutil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinumutil.c b/sys/dev/vinum/vinumutil.c index 63ed8d0..f979736 100644 --- a/sys/dev/vinum/vinumutil.c +++ b/sys/dev/vinum/vinumutil.c @@ -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': |