diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-04-23 15:25:22 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-04-23 15:25:22 +0000 |
commit | 38fc778c9782dbaa70fa6da92cfd8daaaa43d6fe (patch) | |
tree | ae3cdf39a2c58715ddd572c6ba0e0e6d72ea4ce2 /sys/arch/sparc/dev | |
parent | ed069888a3c009f9af5ecffb1dd73b037a5b95c2 (diff) |
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/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/fd.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/dev/presto.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c index 7a33dd41d06..ede25b1f2ea 100644 --- a/sys/arch/sparc/dev/fd.c +++ b/sys/arch/sparc/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.68 2009/09/12 01:23:30 krw Exp $ */ +/* $OpenBSD: fd.c,v 1.69 2010/04/23 15:25:21 jsing Exp $ */ /* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */ /*- @@ -1945,11 +1945,9 @@ fdgetdisklabel(dev_t dev, struct fd_softc *fd, struct disklabel *lp, lp->d_ncylinders = fd->sc_type->tracks; lp->d_ntracks = fd->sc_type->heads; /* Go figure... */ DL_SETDSIZE(lp, fd->sc_type->size); - lp->d_rpm = 300; /* XXX like it matters... */ strncpy(lp->d_typename, "floppy disk", sizeof(lp->d_typename)); strncpy(lp->d_packname, "fictitious", sizeof(lp->d_packname)); - lp->d_interleave = 1; lp->d_version = 1; lp->d_magic = DISKMAGIC; diff --git a/sys/arch/sparc/dev/presto.c b/sys/arch/sparc/dev/presto.c index 82e7c0c3ef2..a2435094985 100644 --- a/sys/arch/sparc/dev/presto.c +++ b/sys/arch/sparc/dev/presto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: presto.c,v 1.15 2009/09/05 00:48:39 krw Exp $ */ +/* $OpenBSD: presto.c,v 1.16 2010/04/23 15:25:21 jsing Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -372,8 +372,6 @@ presto_getdisklabel(dev_t dev, struct presto_softc *sc) strncpy(lp->d_typename, "Prestoserve", 16); lp->d_type = DTYPE_SCSI; /* what better to put here? */ strncpy(lp->d_packname, sc->sc_model, 16); - lp->d_rpm = 3600; - lp->d_interleave = 1; lp->d_version = 1; lp->d_magic = DISKMAGIC; |