diff options
author | 2010-04-23 15:25:20 +0000 | |
---|---|---|
committer | 2010-04-23 15:25:20 +0000 | |
commit | d8b1e0ec2dbc403b285d5ef241509edd31fbdde8 (patch) | |
tree | 04bb028f5c45627307a0309e695988420803b660 /sys/dev/flash.c | |
parent | When converting A-Z into a control character, want to subtract 64 not (diff) | |
download | wireguard-openbsd-d8b1e0ec2dbc403b285d5ef241509edd31fbdde8.tar.xz wireguard-openbsd-d8b1e0ec2dbc403b285d5ef241509edd31fbdde8.zip |
Recycle unused disklabel fields in order to create a disklabel unique
identifier, allowing the disk to be identified without relying on the
device name.
ok deraadt@ krw@ beck@ marco@ todd@
Diffstat (limited to 'sys/dev/flash.c')
-rw-r--r-- | sys/dev/flash.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/flash.c b/sys/dev/flash.c index 9843c9df653..ec5eebd53d4 100644 --- a/sys/dev/flash.c +++ b/sys/dev/flash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: flash.c,v 1.14 2009/10/13 19:33:16 pirofti Exp $ */ +/* $OpenBSD: flash.c,v 1.15 2010/04/23 15:25:21 jsing Exp $ */ /* * Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org> @@ -990,9 +990,6 @@ flashgetdefaultlabel(dev_t dev, struct flash_softc *sc, lp->d_secpercyl = lp->d_ntracks * lp->d_nsectors; DL_SETDSIZE(lp, (daddr64_t)lp->d_ncylinders * lp->d_secpercyl); - /* Fake hardware characteristics. */ - lp->d_rpm = 3600; - lp->d_interleave = 1; lp->d_version = 1; /* XXX these values assume ffs. */ |