From 36bf49767d867ca231436ddd0a357a8103dfc8e4 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 14 Jun 2007 03:35:31 +0000 Subject: set the prototype disklabel to version 1 --- sys/arch/landisk/landisk/disksubr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/landisk') diff --git a/sys/arch/landisk/landisk/disksubr.c b/sys/arch/landisk/landisk/disksubr.c index 1dcbdcca7ec..a4ac5671fce 100644 --- a/sys/arch/landisk/landisk/disksubr.c +++ b/sys/arch/landisk/landisk/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.30 2007/06/14 03:29:34 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.31 2007/06/14 03:35:29 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -91,6 +91,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0) DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp)); DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); + lp->d_version = 1; /* get a buffer and initialize it */ bp = geteblk((int)lp->d_secsize); -- cgit v1.2.3