summaryrefslogtreecommitdiffstats
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-01-20 16:15:47 +0000
committerscottl <scottl@FreeBSD.org>2003-01-20 16:15:47 +0000
commita752ec7b60312f295643dc7eb37ec1318d8c7412 (patch)
tree4265acee8d35008c327ceab11ca8f73b1a3dd2ab /sys/dev/raidframe
parentc11946f0bdec1528d06e784ae9f93c60d37266ed (diff)
downloadFreeBSD-src-a752ec7b60312f295643dc7eb37ec1318d8c7412.zip
FreeBSD-src-a752ec7b60312f295643dc7eb37ec1318d8c7412.tar.gz
Remove stale reference to deprecated mini-disklayer stuff.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_freebsdkintf.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/raidframe/rf_freebsdkintf.c b/sys/dev/raidframe/rf_freebsdkintf.c
index 91454a0..fdd3d8b 100644
--- a/sys/dev/raidframe/rf_freebsdkintf.c
+++ b/sys/dev/raidframe/rf_freebsdkintf.c
@@ -157,8 +157,6 @@
#include <sys/bio.h>
#include <sys/buf.h>
#include <sys/disk.h>
-#include <sys/diskslice.h>
-#include <sys/disklabel.h>
#include <sys/conf.h>
#include <sys/lock.h>
#include <sys/reboot.h>
@@ -321,9 +319,6 @@ struct raid_softc {
#define RAIDOUTSTANDING 10
#endif
-#define RAIDLABELDEV(dev) dkmodpart(dev, RAW_PART)
-#define DISKPART(dev) dkpart(dev)
-
static void raidgetdefaultlabel(RF_Raid_t *, struct raid_softc *, struct disk*);
static int raidlock(struct raid_softc *);
static void raidunlock(struct raid_softc *);
@@ -1469,14 +1464,6 @@ raidstart(raidPtr)
* device.. */
blocknum = bp->bio_blkno;
-#if 0 /* XXX Is this needed? */
- if (DISKPART(bp->bio_dev) != RAW_PART) {
- struct partition *pp;
- pp = &sc->sc_dkdev.d_label.d_partitions[DISKPART(
- bp->bio_dev)];
- blocknum += pp->p_offset;
- }
-#endif
rf_printf(3, "Blocks: %ld, %ld\n", (long)bp->bio_blkno, (long)blocknum);
OpenPOWER on IntegriCloud