diff options
author | 2007-04-19 02:36:56 +0000 | |
---|---|---|
committer | 2007-04-19 02:36:56 +0000 | |
commit | b62871cb3358c2048ffe45796f37a45a5d6e0b5e (patch) | |
tree | b1e3d1d6d84d92b2a24c2eb94ce9702cf6a7a1cc /sys/dev/softraid.c | |
parent | adds a detailed synopsis to the man page; sorts options in (diff) | |
download | wireguard-openbsd-b62871cb3358c2048ffe45796f37a45a5d6e0b5e.tar.xz wireguard-openbsd-b62871cb3358c2048ffe45796f37a45a5d6e0b5e.zip |
Silly tedu, partitions are measured in blocks not in bytes.
Diffstat (limited to 'sys/dev/softraid.c')
-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); |