NO_GEOM cleanup:
Remove cdevsw->d_psize() implementation. It is no longer needed.
This commit is contained in:
parent
6ae00236e6
commit
fc2c56a94b
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user