diff options
author | phk <phk@FreeBSD.org> | 2003-03-02 14:42:52 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-02 14:42:52 +0000 |
commit | 4805bac1a297b0e13366633ccc5313b7b42a2aed (patch) | |
tree | 78416fafacba6006435033e6ff230022acb3f2f0 | |
parent | 2fb7245efce2b2ad6dd7f2a9b78795a5c1dc2e1c (diff) | |
download | FreeBSD-src-4805bac1a297b0e13366633ccc5313b7b42a2aed.zip FreeBSD-src-4805bac1a297b0e13366633ccc5313b7b42a2aed.tar.gz |
NO_GEOM cleanup:
Remove cdevsw->d_psize() implementation. It is no longer needed.
-rw-r--r-- | sys/dev/vinum/vinum.c | 19 | ||||
-rw-r--r-- | sys/dev/vinum/vinumext.h | 1 |
2 files changed, 1 insertions, 19 deletions
diff --git a/sys/dev/vinum/vinum.c b/sys/dev/vinum/vinum.c index d202442..0376ccb 100644 --- a/sys/dev/vinum/vinum.c +++ b/sys/dev/vinum/vinum.c @@ -57,7 +57,7 @@ struct cdevsw vinum_cdevsw = { vinumopen, vinumclose, physread, physwrite, vinumioctl, seltrue, nommap, vinumstrategy, - "vinum", VINUM_CDEV_MAJOR, nodump, vinumsize, + "vinum", VINUM_CDEV_MAJOR, nodump, nopsize, D_DISK }; @@ -542,23 +542,6 @@ vinumclose(dev_t dev, } } -/* size routine */ -int -vinumsize(dev_t dev) -{ - struct volume *vol; - int size; - - vol = &VOL[Volno(dev)]; - - if (vol->state == volume_up) - size = vol->size; - else - return 0; /* err on the size of conservatism */ - - return size; -} - void vinum_clone(void *arg, char *name, int namelen, dev_t *dev) { diff --git a/sys/dev/vinum/vinumext.h b/sys/dev/vinum/vinumext.h index 3c6bbad..e6891e4 100644 --- a/sys/dev/vinum/vinumext.h +++ b/sys/dev/vinum/vinumext.h @@ -140,7 +140,6 @@ d_open_t vinumopen; d_close_t vinumclose; d_strategy_t vinumstrategy; d_ioctl_t vinumioctl; -d_psize_t vinumsize; int vinumstart(struct buf *bp, int reviveok); int launch_requests(struct request *rq, int reviveok); |