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/flash.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/flash.c')
-rw-r--r-- | sys/dev/flash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/flash.c b/sys/dev/flash.c index 3f1ff5b4b62..9824c2a03fd 100644 --- a/sys/dev/flash.c +++ b/sys/dev/flash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: flash.c,v 1.6 2007/06/07 05:29:43 deraadt Exp $ */ +/* $OpenBSD: flash.c,v 1.7 2007/06/08 05:27:58 deraadt Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org> @@ -992,6 +992,7 @@ flashgetdefaultlabel(dev_t dev, struct flash_softc *sc, /* Fake hardware characteristics. */ lp->d_rpm = 3600; lp->d_interleave = 1; + lp->d_version = 1; /* XXX these values assume ffs. */ lp->d_bbsize = BBSIZE; |