diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-08-13 16:24:14 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-08-13 16:24:14 +0000 |
commit | f96fc8974ab5ed8b67b4a30c00af4ef8f52d5eb2 (patch) | |
tree | 585c728116eb1c267c45194f06ecfe4783493dc5 /sys/dev/isa/fd.c | |
parent | ef95efc18deed3dac4cd340172b3cc06000775ad (diff) |
RAW_PART p_size on floppies and mcd's should be in sectors.
Only 'Japanese 1.2MB' floppies have sectors that are not 512 bytes, according
to isa/fd.c's fd_types[].
SCSI/ATAPI cd's already use sectors, and mcd cd's should be no different.
So there should be no functional change.
Diffstat (limited to 'sys/dev/isa/fd.c')
-rw-r--r-- | sys/dev/isa/fd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index b16144f4dac..028b436cef8 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.54 2006/08/13 03:36:24 krw Exp $ */ +/* $OpenBSD: fd.c,v 1.55 2006/08/13 16:24:12 krw Exp $ */ /* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */ /*- @@ -988,8 +988,7 @@ fdioctl(dev, cmd, addr, flag, p) lp->d_flags = D_REMOVABLE; lp->d_partitions[RAW_PART].p_offset = 0; - lp->d_partitions[RAW_PART].p_size = - lp->d_secperunit * (lp->d_secsize / DEV_BSIZE); + lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED; lp->d_npartitions = RAW_PART + 1; |