diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-08 17:38:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-08 17:38:30 +0000 |
commit | 4620c77a2b54bcb8abf6c9878bf419046a567a30 (patch) | |
tree | c508898c22a279c2b2b27f8430898e9757d1b0b9 /sys/dev/vnd.c | |
parent | c4a883279839da670509484d948e7af46e555e67 (diff) |
init d_secperunit nicely
Diffstat (limited to 'sys/dev/vnd.c')
-rw-r--r-- | sys/dev/vnd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index 98edf4e2490..1bfc37e7042 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnd.c,v 1.13 1997/05/18 13:00:12 deraadt Exp $ */ +/* $OpenBSD: vnd.c,v 1.14 1997/06/08 17:38:29 deraadt Exp $ */ /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */ /* @@ -265,7 +265,7 @@ vndgetdisklabel(dev, sc) lp->d_secsize = 512; lp->d_ntracks = 1; lp->d_nsectors = 100; - lp->d_ncylinders = 100; + lp->d_ncylinders = sc->sc_size / 100; lp->d_secpercyl = lp->d_ntracks * lp->d_nsectors; if (lp->d_secpercyl == 0) { lp->d_secpercyl = 100; @@ -275,7 +275,7 @@ vndgetdisklabel(dev, sc) strncpy(lp->d_typename, "vnd device", 16); lp->d_type = DTYPE_SCSI; strncpy(lp->d_packname, "fictitious", 16); - lp->d_secperunit = 100 * 100; + lp->d_secperunit = sc->sc_size; lp->d_rpm = 3600; lp->d_interleave = 1; lp->d_flags = 0; |