diff options
author | 2007-06-08 05:27:58 +0000 | |
---|---|---|
committer | 2007-06-08 05:27:58 +0000 | |
commit | 222309212df9fe7b2231f37bca7fc731a79b645b (patch) | |
tree | f4c6c73d54329730bf29c61052ee39c0dda79a64 /sys/dev/raidframe/rf_openbsdkintf.c | |
parent | - always set the partition disk size to full disk info (from driver) (diff) | |
download | wireguard-openbsd-222309212df9fe7b2231f37bca7fc731a79b645b.tar.xz wireguard-openbsd-222309212df9fe7b2231f37bca7fc731a79b645b.zip |
all drivers should spoof version 1 labels
Diffstat (limited to 'sys/dev/raidframe/rf_openbsdkintf.c')
-rw-r--r-- | sys/dev/raidframe/rf_openbsdkintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_openbsdkintf.c b/sys/dev/raidframe/rf_openbsdkintf.c index d394175c90c..7a8a3052d70 100644 --- a/sys/dev/raidframe/rf_openbsdkintf.c +++ b/sys/dev/raidframe/rf_openbsdkintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rf_openbsdkintf.c,v 1.38 2007/06/07 00:49:08 krw Exp $ */ +/* $OpenBSD: rf_openbsdkintf.c,v 1.39 2007/06/08 05:27:58 deraadt Exp $ */ /* $NetBSD: rf_netbsdkintf.c,v 1.109 2001/07/27 03:30:07 oster Exp $ */ /*- @@ -2108,8 +2108,9 @@ raidgetdefaultlabel(RF_Raid_t *raidPtr, struct raid_softc *rs, lp->d_type = DTYPE_RAID; strncpy(lp->d_packname, "fictitious", sizeof(lp->d_packname)); lp->d_rpm = 3600; - lp->d_interleave = 1; lp->d_flags = 0; + lp->d_interleave = 1; + lp->d_version = 1; DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0); DL_SETPSIZE(&lp->d_partitions[RAW_PART], raidPtr->totalSectors); |