From e4c35052dac3c84399df1348da29211c656d8e81 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Wed, 13 May 2009 01:31:59 +0000 Subject: Set D_VENDOR when spoofing a label on archs that use D_VENDOR when reading the native disklabel. This ensures cylinder alignment. Fix disklabel to do cylinder alignment arithmetic correctly in -A mode. Worked by accident before, since the code was protected by D_VENDOR, which wasn't being set. ok deraadt@ --- sys/arch/luna88k/luna88k/disksubr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/luna88k') diff --git a/sys/arch/luna88k/luna88k/disksubr.c b/sys/arch/luna88k/luna88k/disksubr.c index b91f4288720..7b2f004ff7a 100644 --- a/sys/arch/luna88k/luna88k/disksubr.c +++ b/sys/arch/luna88k/luna88k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.38 2009/01/22 01:06:28 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.39 2009/05/13 01:31:58 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.12 2002/02/19 17:09:44 wiz Exp $ */ /* @@ -113,6 +113,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if ((msg = initdisklabel(lp))) goto done; + lp->d_flags |= D_VENDOR; /* get a buffer and initialize it */ bp = geteblk((int)lp->d_secsize); -- cgit v1.2.3