From 01fd3bcba5243ba996ccca46c29e5c26ad72ce24 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 15 Oct 2025 17:53:36 +0000 Subject: [PATCH] Oops, in the maxpartitions=52 case, the correct multiplier is 64 Noticed by krw and myself at the same time --- etc/MAKEDEV.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/MAKEDEV.common b/etc/MAKEDEV.common index 96acafeddcf..2f92448a01f 100644 --- a/etc/MAKEDEV.common +++ b/etc/MAKEDEV.common @@ -1,4 +1,4 @@ -vers(a, {-$OpenBSD: MAKEDEV.common,v 1.123 2025/10/15 00:24:40 deraadt Exp $-})dnl +vers(a, {-$OpenBSD: MAKEDEV.common,v 1.124 2025/10/15 17:53:36 deraadt Exp $-})dnl dnl dnl Copyright (c) 2001-2006 Todd T. Fries dnl @@ -244,7 +244,7 @@ _mkdev(flo, fd*, *) echo bad unit $U for $i; exit 1;; esac nam=fd${typnam} - n=Add(Mult($U, 128), Mult($typnum,$MAXPARTITIONS)) + n=Add(Mult($U, 128), Mult($typnum,$UNITMULT)) M ${nam}a b $blk $n 640 operator M ${nam}b b $blk Add($n, 1) 640 operator M ${nam}c b $blk Add($n, 2) 640 operator