diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2007-04-19 02:36:57 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2007-04-19 02:36:57 +0000 |
commit | 45a77b9ce91aee4f88016934413f25ad07ae59ca (patch) | |
tree | 31f985b9032be49084473f9cd4b1da8ec318136a /sys | |
parent | 8024290be4a083ca6cbf63c2d66f399c5dd9ebd3 (diff) |
Silly tedu, partitions are measured in blocks not in bytes.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/softraid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index da4da68085c..eaaf8a58cc8 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.22 2007/04/17 23:18:23 marco Exp $ */ +/* $OpenBSD: softraid.c,v 1.23 2007/04/19 02:36:56 marco Exp $ */ /* * Copyright (c) 2007 Marco Peereboom <marco@peereboom.us> * @@ -985,7 +985,7 @@ sr_parse_chunks(struct sr_softc *sc, char *lst, struct sr_chunk_head *cl) /* get partition size */ ss = name[strlen(name) - 1]; ch_entry->src_meta.scm_size = - label.d_partitions[ss - 'a'].p_size - (SR_META_FUDGE * 512); + label.d_partitions[ss - 'a'].p_size - SR_META_FUDGE; if (ch_entry->src_meta.scm_size <= 0) { printf("%s: %s partition size = 0\n", DEVNAME(sc), name); |