diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-06-01 00:07:49 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-06-01 00:07:49 +0000 |
commit | 50b189678902e9ab33471bd656c5e3a65520d9c3 (patch) | |
tree | 6a12648df155641161433115c6f6ae947b139b04 /sys/scsi/sd.c | |
parent | de25703b03d0b81b319602e0e00a300f49f80058 (diff) |
Don't initialize d_partitions[RAW_DISK] just before calling
readdisklabel(), since all readdisklabel()'s do that already.
ok deraadt@
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index bb3f69875af..b6127a40ba4 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.128 2007/05/31 18:07:18 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.129 2007/06/01 00:07:48 krw Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -1039,11 +1039,6 @@ sdgetdisklabel(dev_t dev, struct sd_softc *sd, struct disklabel *lp, lp->d_bbsize = BBSIZE; lp->d_sbsize = SBSIZE; - lp->d_partitions[RAW_PART].p_offset = 0; - 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; - lp->d_magic = DISKMAGIC; lp->d_magic2 = DISKMAGIC; lp->d_checksum = dkcksum(lp); |