diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-05-13 01:31:59 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2009-05-13 01:31:59 +0000 |
commit | e4c35052dac3c84399df1348da29211c656d8e81 (patch) | |
tree | 65a7379b1cae1697bb0e054f18ed9b964c343a71 /sys/arch/sparc64 | |
parent | 8541d2729a9dc2d75c99c7e7523f5e946c40a6f7 (diff) |
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@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/disksubr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/disksubr.c b/sys/arch/sparc64/sparc64/disksubr.c index 6d43f696060..2bb7ddc9d67 100644 --- a/sys/arch/sparc64/sparc64/disksubr.c +++ b/sys/arch/sparc64/sparc64/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.54 2009/04/07 03:11:59 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.55 2009/05/13 01:31:58 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk Exp $ */ /* @@ -69,6 +69,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if ((msg = initdisklabel(lp))) goto done; + lp->d_flags |= D_VENDOR; /* * On sparc64 we check for a CD label first, because our |