summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-03-16 21:43:32 +0000
committermsmith <msmith@FreeBSD.org>2001-03-16 21:43:32 +0000
commit027c5827dd3271f08835528fb2b3f16e0b1808d0 (patch)
tree24b6cd2027eaab43ff9e7e0417be2535a0fd78d8 /sys
parent28bc69fede7575924c2df68872e2282628e254b6 (diff)
downloadFreeBSD-src-027c5827dd3271f08835528fb2b3f16e0b1808d0.zip
FreeBSD-src-027c5827dd3271f08835528fb2b3f16e0b1808d0.tar.gz
Fix a typo which would cause containers between 1GB and 2GB to have the wrong
geometry reported. Submitted by: mark tinguely <tinguely@web.cs.ndsu.NoDak.edu>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/aac/aac_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/aac/aac_disk.c b/sys/dev/aac/aac_disk.c
index 23287ad..e5fcb34 100644
--- a/sys/dev/aac/aac_disk.c
+++ b/sys/dev/aac/aac_disk.c
@@ -232,7 +232,7 @@ aac_disk_attach(device_t dev)
if (sc->ad_size >= (2 * 1024 * 1024)) { /* 2GB */
sc->ad_heads = 255;
sc->ad_sectors = 63;
- } else if (sc->ad_size >= (2 * 1024 * 1024)) { /* 1GB */
+ } else if (sc->ad_size >= (1 * 1024 * 1024)) { /* 1GB */
sc->ad_heads = 128;
sc->ad_sectors = 32;
} else {
OpenPOWER on IntegriCloud